From: Laurent Bercot > Sent: 10 May 2023 12:36 > > >You miss the point. CLOCK_MONOTONIC may simply be too granular > >on some hardware - returning the same value for the duration of > >several milliseconds. > > Wait, what? Is that a thing? Is there actual hardware where > CLOCK_MONOTONIC stalls for a noticeable period of time? > That does not sound permitted by POSIX:
Some implementation will increment the nanoseconds on every call to avoid returning the same value. But the underlying timer might only change every 10ms (or more). Even though the output value has a nanosecond part. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales) _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox