This struct provides a namespace for a set of platform‐neutral pure procedures to access real‐time system clock functionality. High‐resolution time functions intended for interval‐timing return an interval in nanoseconds (1 nsec = 1E‐9 sec) as a platform‐independent 64‐bit integer.
Synopsis
Declared in <bsls_timeutil.h>
struct TimeUtil;
Description
For maximum performance on some platforms where fetching the native clock is significantly faster than converting the fetched value to nanoseconds, this class also provides a "raw" method returning an opaque native time value and a conversion method returning a value in nanoseconds.
Type Aliases
Name |
Static Member Functions
Name |
Description |
Convert the specified |
|
Return the instantaneous values of a platform‐dependent timer for the current process system time in absolute nanoseconds referenced to an arbitrary but fixed origin. If the system call fails return ‐1. Note that this method is thread‐safe only if |
|
Load into the specified |
|
Return the instantaneous values of a platform‐dependent timer for the current process user time in absolute nanoseconds referenced to an arbitrary but fixed origin. If the system call fails return ‐1. Note that this method is thread‐safe only if |
|
Return the instantaneous values of a platform‐dependent timer for the current thread system time in absolute nanoseconds referenced to an arbitrary but fixed origin. Return ‐1 on platforms where per‐thread CPU timers are unavailable or in case of a system call failure. Note that this method is thread‐safe only if |
|
Load into the specified |
|
Return the instantaneous values of a platform‐dependent timer for the current thread user time in absolute nanoseconds referenced to an arbitrary but fixed origin. Return ‐1 on platforms where per‐thread CPU timers are unavailable or in case of a system call failure. Note that this method is thread‐safe only if |
|
Return the instantaneous value of a platform‐dependent system timer in absolute nanoseconds referenced to an arbitrary but fixed origin. Note that this method is thread‐safe only if |
|
Load into the specified |
|
Do a platform‐dependent initialization for the utilities. Note that the other methods in this component are guaranteed to be thread‐safe only after calling this method. |
Created with MrDocs