[LEAPSECS] Coding this week,	and a trick for timeouts over leap seconds.
    Tom Van Baak 
    tvb at LeapSecond.com
       
    Sat Oct  1 16:35:16 EDT 2011
    
    
  
> I am busy implementing some heartbeat monitoring code between two
> machines. The spec calls for a 1 second recovery.
Paul,
Try using clock() instead of gettimeofday_in_millisecs(). The former
nicely increments with CLOCKS_PER_SEC resolution and is immune
from UTC, timezones, and leap seconds. At least it does on windows.
Can someone comment on unix/linux?
/tvb
    
    
More information about the LEAPSECS
mailing list