Go to the source code of this file.
◆ gpr_timespec
Analogous to struct timespec.
On some machines, absolute times may be in local time.
◆ gpr_clock_type
The clocks we support.
Enumerator |
---|
GPR_CLOCK_MONOTONIC | Monotonic clock.
Epoch undefined. Always moves forwards.
|
GPR_CLOCK_REALTIME | Realtime clock.
May jump forwards or backwards. Settable by the system administrator. Has its epoch at 0:00:00 UTC 1 Jan 1970.
|
GPR_CLOCK_PRECISE | CPU cycle time obtained by rdtsc instruction on x86 platforms.
Epoch undefined. Degrades to GPR_CLOCK_REALTIME on other platforms.
|
GPR_TIMESPAN | Unmeasurable clock type: no base, created by taking the difference between two times.
|