Rearrange check_time()

Remove an ugly workaround for a gcc
warning while there.

No functional change.
This should be int64_t?