[LEAPSECS] Coding this week, and a trick for timeouts over leap seconds.

Paul Sheer p at 2038bug.com
Sat Oct 1 19:14:07 EDT 2011


On Sat, 2011-10-01 at 15:42 -0700, Tom Van Baak wrote:

> > clock() wraps every 36 minutes on 32-bit systems *sigh*

>

> t_elapsed = (t_now - t_then) works regardless of binary wrap.

> Or am I missing something?



you are correct

as much as i don't like it, I guess C is all about such subtleties :-)

-paul





More information about the LEAPSECS mailing list