Time Service#

This module includes the platform abstraction for the time service.

Functions#

uint64_t

Get the current time (64bits width).

uint16_t

Get the device's XTAL accuracy.

Function Documentation#

otPlatTimeGet#

uint64_t otPlatTimeGet (void )

Get the current time (64bits width).

Parameters
N/A

Returns

  • The current time in microseconds.


Definition at line 60 of file include/openthread/platform/time.h

otPlatTimeGetXtalAccuracy#

uint16_t otPlatTimeGetXtalAccuracy (void )

Get the device's XTAL accuracy.

Parameters
N/A

Returns

  • The device's XTAL accuracy, in ppm.


Definition at line 68 of file include/openthread/platform/time.h