timer

The moving average timer for the OpMode, which is used to calculate time between hardware cycles. This is useful for debugging, performance monitoring, and calculating various time-based values (deltaTime, loopCount, elapsedTime, etc.)

This timer is automatically active during the dynamic_init and running phases of the OpMode, and is reset in between. If you wish to get the total time since this OpMode was started, you can call the built-in getRuntime method.

See also