GET CPU TICK COUNT

From Solid Graphics Wiki

Jump to: navigation, search
GET CPU TICK COUNT
Namespace: SKL
Member of: (this function is not member of any class)
Include: SklTime.h
Lib (Release): SKL.lib
Lib (Debug): SKL_D.lib

The GET_CPU_TICK_COUNT is a macro which retrieves value of internal CPU's clock counter.

The clock is running at microprocessor's frequency. For example the Intel Core 2 Duo E6600 is rated by Intel with 2.4GHz clock speed, so the values returned by the GET_CPU_TICK_COUNT for computer with that CPU running at factory rated frequency will have resolution of less than half nanoseconds. The GET_CPU_TICK_COUNT macro actually consumes a few CPU cycles by itself, so difference of values returned by two consecutive calls to GET_CPU_TICK_COUNT on E6600 CPU will specify interval of a few nanoseconds.


void GET_CPU_TICK_COUNT( LARGE_INTEGER & ticks );


Parameters

ticks The macro will store the current CPU clock counter value to the ticks variable.

See Also






   


SolidKit Library Documentation

Personal tools