C# Class NewTOAPIA.CClock

显示文件 Open project: Wiladams/NewTOAPIA

Public Properties

Property Type Description
CPUFrequency double
gMhzFactor System.Int64

Public Methods

Method Description
GetTimeInMicroseconds ( ) : long
Sleep ( System.Int64 interval ) : void

Sleep for a number of microseconds

SleepTo ( System.Int64 nexttime ) : void
Tick ( ) : void

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

interrupt ( ) : void

Stop the sleep() or sleepto() methods.

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

Returns the frequency of the CPU in Mhz

triggerEvent ( ) : void
waitForEvent ( ) : void

Private Methods

Method Description
CClock ( ) : System

Method Details

GetTimeInMicroseconds() public static method

public static GetTimeInMicroseconds ( ) : long
return long

Sleep() public method

Sleep for a number of microseconds
public Sleep ( System.Int64 interval ) : void
interval System.Int64 Number of microseconds to sleep
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

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

triggerEvent() public method

public triggerEvent ( ) : void
return void

waitForEvent() public method

public waitForEvent ( ) : void
return void

Property Details

CPUFrequency public_oe static_oe property

public static double CPUFrequency
return double

gMhzFactor public_oe static_oe property

public static Int64,System gMhzFactor
return System.Int64