Rearrange check_time()

Remove an ugly workaround for a gcc
warning while there.

No functional change.