core / com.acmerobotics.roadrunner.util / NanoClock

NanoClock

abstract class NanoClock

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

Constructors

<init>

NanoClock()

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

Functions

seconds

abstract fun seconds(): Double

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

Companion Object Functions

system

fun system(): NanoClock

Returns a NanoClock backed by System.nanoTime.