I have a call like clock_gettime(CLOCK_REALTIME), does it handle leap seconds? If not, what changes are required? Working on Solaris.

有帮助吗?

解决方案

If your Unix system is synchronized with NTP, chances are that it handles leap seconds.

See this article for more information: NTP Leap Second.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top