t2 is the timed pin?

is tflag being reset to 0 elsewhere in your code?

Like you I see no problem with this snippet.