-
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: refactor so ifdef's are withing each time-related function
The time-related functions have two implementations, one if clock_gettime() is available and the other if not. Previously, there was one big ifdef-else with the clock_gettime() implementation of each function followed by the other implementation of each function. With this commit, each function is defined once, with an ifdef-else inside it with the two implementations of that function. For ease of review, no other code changes are made, but the intent will become obvious with later changes.
- Loading branch information
1 parent
5f8278a
commit 4f82b0b
Showing
1 changed file
with
22 additions
and
33 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