pub unsafe extern "C" fn otPlatTimeGet() -> u64
Expand description

Get the current platform time in microseconds referenced to a continuous monotonic local clock (64 bits width).

The clock SHALL NOT wrap during the device’s uptime. Implementations SHALL therefore identify and compensate for internal counter overflows. The clock does not have a defined epoch and it SHALL NOT introduce any continuous or discontinuous adjustments (e.g. leap seconds). Implementations SHALL compensate for any sleep times of the device.

Implementations MAY choose to discipline the platform clock and compensate for sleep times by any means (e.g. by combining a high precision/low power RTC with a high resolution counter) as long as the exposed combined clock provides continuous monotonic microsecond resolution ticks within the accuracy limits announced by @ref otPlatTimeGetXtalAccuracy.

@returns The current time in microseconds.