Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.TmrCycles

Summary

A timer measuring the number of CPU clock cycles consumed by the calling thread between the calls. To ensure correct operation, the timer must be instantiated on the same thread on which the measurements will be performed. See Remarks on Tmr<T>.

Constructors

Constructor. Calibrates the timer. To ensure correct operation, the timer must be instantiated on the same thread on which the measurements will be performed.

Instance methods

TmrCycles Makes sure the timer is running without zeroing the time reading. If the reading is non-zero, it will continue growing. This method may be called while the timer is already running.
TmrCycles Pauses the timer without zeroing it. This method may be called while the timer is already paused, but a single call to TmrCycles.Continue() is always sufficient to resume the timer.
TmrCyclesResets the timer and makes sure it's running. The current state of the timer is irrelevant.
TmrCyclesMakes sure the timer is not running and zeroes it. The current state of the timer is irrelevant.
TmrCyclesResets the timer back to zero.

Instance properties

long
  • Inherited from Tmr<long>
Gets the current reading of the timer. This value increases between consecutive reads while the timer is running, and remains fixed while it's paused.
long
  • Inherited from Tmr<long>
Gets the reading the timer had just before the last call to any of the methods of this class related to zeroing, pausing and resuming the timer.