]> git.ipfire.org Git - thirdparty/glibc.git/commit
time: Add TIME_MONOTONIC, TIME_ACTIVE, and TIME_THREAD_ACTIVE
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 2 Dec 2025 12:24:18 +0000 (09:24 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 3 Dec 2025 14:03:58 +0000 (11:03 -0300)
commitf28a11e43f40df2ad92ece62b28ee004a8ad600b
treec45c0a087b2de0a0a63a58d8059df8efa5443d2b
parent56d0e2cca1e5ac4a9ed9332c46c64d7021ab011f
time: Add TIME_MONOTONIC, TIME_ACTIVE, and TIME_THREAD_ACTIVE

The TIME_MONOTONIC maps to POSIX's CLOCK_MONOTONIC, TIME_ACTIVE to
CLOCK_PROCESS_CPUTIME_ID, and TIME_THREAD_ACTIVE to
CLOCK_THREAD_CPUTIME_ID.

No Linux specific timer are added as extension.

Co-authored-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Paul Eggert <eggert@cs.ucla.edu>
NEWS
include/time.h
manual/time.texi
sysdeps/unix/sysv/linux/timespec_get.c
sysdeps/unix/sysv/linux/timespec_getres.c
time/time.h
time/timespec_get.c
time/timespec_getres.c
time/tst-timespec_get.c
time/tst-timespec_getres.c