-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timestamp: Add recent(), now_steady(), and recent_steady().
The steady() functions return the current time as measured by a steady clock: a monotonic clock that never moves backwards. We call the clock "steady" rather than "monotonic" or "up" because C++0x calls this clock the steady_clock, and that's a good name. The recent() functions return a cached copy of a recent now() or now_steady(). At userlevel at the moment, these functions actually just call now() or now_steady(). In the kernels, though, they will be faster than now() or now_steady(). Signed-off-by: Eddie Kohler <[email protected]>
- Loading branch information
Showing
7 changed files
with
280 additions
and
93 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
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
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
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
Oops, something went wrong.