Time Service

This module includes the platform abstraction for the time service.

Summary

Functions

otPlatTimeGet(void)
uint64_t
Get the current time (64bits width).
otPlatTimeGetXtalAccuracy(void)
uint16_t
Get the device's XTAL accuracy.

Functions

otPlatTimeGet

uint64_t otPlatTimeGet(
  void
)

Get the current time (64bits width).

Details
Returns
The current time in microseconds.

otPlatTimeGetXtalAccuracy

uint16_t otPlatTimeGetXtalAccuracy(
  void
)

Get the device's XTAL accuracy.

Details
Returns
The device's XTAL accuracy, in ppm.

Resources

OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.