Re: clock_gettime_ns

From: John Stultz
Date: Wed Sep 04 2013 - 15:21:10 EST


On Wed, Sep 4, 2013 at 11:51 AM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
> I think that most of the hangup was a lack of agreement on how the API
> should work wrt leap seconds.

I don't recall this objection. The interface uses existing clockids,
so it probably should keep the existing leap-second behavior of those
clockids.

> I've always thought that the Right Way to represent a UTC time is
> nanoseconds since some epoch, where every potential leap second
> counts.

Check out the CLOCK_TAI clockid merged in 3.10.

thanks
-john
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/