HomeClusterLabs Projects
Diffusion LibQB 3fb2b597516c

util: reimplement time functions as a series of fallbacks

Description

util: reimplement time functions as a series of fallbacks

Previously, when clock_gettime() was available, the time functions would use
that (regardless of success or failure), otherwise they would use
gettimeofday() if available.

Now, the functions first try clock_gettime() if available, but if that is
unavailable or fails, they then try gettimeofday() if available, but if that is
not available or fails, they try time().

Details

Provenance
kgaillotAuthored on Jan 31 2022, 5:31 PM
chrissie-cCommitted on Feb 14 2022, 7:25 AM
Parents
rQda12cc9695e9: util: use HAVE_GETTIMEOFDAY where appropriate
Branches
Unknown
Tags
Unknown

Event Timeline