C# Class NewTOAPIA.Net.Udt.CTimer

Show file Open project: Wiladams/NewTOAPIA

Public Properties

Property Type Description
gMhzFactor System.Int64

Public Methods

Method Description
getCPUFrequency ( ) : double
getTime ( ) : System.Int64
interrupt ( ) : void

Stop the sleep() or sleepto() methods.

rdtsc ( System.Int64 &x ) : void
readCPUFrequency ( ) : double

Returns the frequency of the CPU in Mhz

sleep ( System.Int64 interval ) : void
sleepto ( System.Int64 nexttime ) : void
tick ( ) : void

trigger the clock for a tick, for better granuality in no_busy_waiting timer.

ticksToMicroseconds ( long ticks ) : long
triggerEvent ( ) : void
waitForEvent ( ) : void

Private Methods

Method Description
CTimer ( ) : System

Method Details

getCPUFrequency() public static method

public static getCPUFrequency ( ) : double
return double

getTime() public static method

public static getTime ( ) : System.Int64
return System.Int64

interrupt() public method

Stop the sleep() or sleepto() methods.
public interrupt ( ) : void
return void

rdtsc() public static method

public static rdtsc ( System.Int64 &x ) : void
x System.Int64
return void

readCPUFrequency() public static method

Returns the frequency of the CPU in Mhz
public static readCPUFrequency ( ) : double
return double

sleep() public method

public sleep ( System.Int64 interval ) : void
interval System.Int64
return void

sleepto() public method

public sleepto ( System.Int64 nexttime ) : void
nexttime System.Int64
return void

tick() public method

trigger the clock for a tick, for better granuality in no_busy_waiting timer.
public tick ( ) : void
return void

ticksToMicroseconds() public static method

public static ticksToMicroseconds ( long ticks ) : long
ticks long
return long

triggerEvent() public method

public triggerEvent ( ) : void
return void

waitForEvent() public method

public waitForEvent ( ) : void
return void

Property Details

gMhzFactor public static property

public static Int64,System gMhzFactor
return System.Int64