Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Util.TicTocCycles

Summary

Provides a more accurate way to measure the amount of CPU time consumed by a thread, using the new QueryThreadCycleTime call introduced in Vista. Unlike Ut.Tic(), this measures in unspecified units, and only counts the times when this thread is actually in possession of a CPU time slice.

Constructors

Constructor. For the results to be valid, this class must be instantiated on the same thread on which the measurements are to be made.

Instance methods

long
Tic()
Starts / resets the timer. Returns the the amount of CPU time consumed by this thread only since the last call to TicTocCycles.Tic(), or zero if this is the first call.
long
Toc()
Returns the amount of CPU time consumed by this thread only since the last call to TicTocCycles.Tic().