core / com.acmerobotics.roadrunner.util / NanoClock

NanoClock

abstract class NanoClock (source)

Clock interface with nanosecond precision and no guarantee about its origin (that is, this is only suited for measuring relative/elapsed time).

Constructors

<init>

Clock interface with nanosecond precision and no guarantee about its origin (that is, this is only suited for measuring relative/elapsed time).

NanoClock()

Functions

seconds

Returns the number of seconds since an arbitrary (yet consistent) origin.

abstract fun seconds(): Double

Companion Object Functions

system

Returns a NanoClock backed by System.nanoTime.

fun system(): NanoClock