LWN.net Logo

Leaping seconds and looping servers

Leaping seconds and looping servers

Posted Jul 3, 2012 23:43 UTC (Tue) by dashesy (subscriber, #74652)
In reply to: Leaping seconds and looping servers by simlo
Parent article: Leaping seconds and looping servers

This is what I use for any relative time:

#ifndef CLOCK_MONOTONIC_RAW
#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
#endif


(Log in to post comments)

Leaping seconds and looping servers

Posted Jul 4, 2012 13:57 UTC (Wed) by simlo (subscriber, #10866) [Link]

Use of CLOCK_MONOTONIC is not an option because we might want to compare timestampt between different servers.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds