int will wrap around every 65.536 seconds, long will wrap every 50 days.
But doing the test correctly will handle wrap-around without failing.
First subtract one timestamp from another. The result is independent of wrap-around, whether or
not the variables are signed or unsigned. Then you have a time difference you can compare safely.