Clock
API for sampling the system clock.
Types
oc_clock_kind
typedef enum oc_clock_kind
{
OC_CLOCK_MONOTONIC = 0,
OC_CLOCK_UPTIME = 1,
OC_CLOCK_DATE = 2
} oc_clock_kind;
Enum Constants
OC_CLOCK_MONOTONIC
A clock incrementing monotonically.OC_CLOCK_UPTIME
A clock incrementing monotonically during uptime.OC_CLOCK_DATE
A clock driven by the platform time.
Functions
oc_clock_time
f64 oc_clock_time(oc_clock_kind clock);
Parameters
clock
The kind of clock to sample.
Return
The sampled time in seconds.