Re: [dev] [slstatus] CLOCK_BOOTTIME not available for old Linux/glibc

From: Laslo Hunhold <dev_AT_frign.de>
Date: Thu, 17 Jan 2019 09:59:41 +0100

Dear Roberto,

On 1/17/19 9:42 AM, k0ga_AT_shike2.com wrote:

> I think the important point here is if it is POSIX. If it is not
> then maybe we should think to revert to CLOCK_MONOTONIC.

CLOCK_BOOTTIME is not POSIX, but CLOCK_MONOTONIC is[0]. CLOCK_BOOTTIME
was added in Linux 2.6.39 and is Linux-specific[1].

Thus, I would be in favor of going with CLOCK_MONOTONIC.

With best regards

Laslo

[0]:http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html
[1]:http://man7.org/linux/man-pages/man2/clock_gettime.2.html
Received on Thu Jan 17 2019 - 09:59:41 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 17 2019 - 10:00:09 CET