MovingAverageTimer

Time utilities for robot operation. Source

Author

Shaun, 11/06/2017

Since

1.0.0-pre

Constructors

Link copied to clipboard
constructor()
Create a new MovingAverageTimer with a ring buffer size of 100 and a resolution of milliseconds.
constructor(bufSize: Int)
Create a new MovingAverageTimer with the specified buffer size and a resolution of milliseconds.
constructor(bufSize: Int, formatStringResolution: Time)
Create a new MovingAverageTimer with the specified buffer size and resolution.

Functions

Link copied to clipboard
Link copied to clipboard
open fun deltaTime(): Measure<Time>
Link copied to clipboard
open fun elapsedTime(): Measure<Time>
Link copied to clipboard
open fun loopCount(): Long
Link copied to clipboard
open fun loopsPer(unit: Time): Double
Link copied to clipboard
Link copied to clipboard
open fun maxLoopTime(): Measure<Time>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun minLoopTime(): Measure<Time>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun reset()
Reset the timer.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun update()
Update the timer.