TimeProvider

interface TimeProvider(source)

The time provider used to provider timestamps.

There are two sets of methods based on Timebase.UPTIME and Timebase.REALTIME.

See also

Inheritors

Functions

Link copied to clipboard
abstract fun realtimeNs(): Long

Returns the timestamp in nanoseconds based on Timebase.REALTIME.

Link copied to clipboard
open fun realtimeUs(): Long

Returns the timestamp in microseconds based on Timebase.REALTIME.

Link copied to clipboard

Returns the timestamp in nanoseconds for the given timebase.

Link copied to clipboard

Returns the timestamp in microseconds for the given timebase.

Link copied to clipboard
abstract fun uptimeNs(): Long

Returns the timestamp in nanoseconds based on Timebase.UPTIME.

Link copied to clipboard
open fun uptimeUs(): Long

Returns the timestamp in microseconds based on Timebase.UPTIME.