-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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().
- Loading branch information
1 parent
da12cc9
commit 3fb2b59
Showing
1 changed file
with
44 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters