C# Class NewTOAPIA.CClock

Afficher le fichier Open project: Wiladams/NewTOAPIA

Méthodes publiques

Свойство Type Description
CPUFrequency double
gMhzFactor System.Int64

Méthodes publiques

Méthode 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

Méthode Description
CClock ( ) : System

Method Details

GetTimeInMicroseconds() public static méthode

public static GetTimeInMicroseconds ( ) : long
Résultat long

Sleep() public méthode

Sleep for a number of microseconds
public Sleep ( System.Int64 interval ) : void
interval System.Int64 Number of microseconds to sleep
Résultat void

SleepTo() public méthode

public SleepTo ( System.Int64 nexttime ) : void
nexttime System.Int64
Résultat void

Tick() public méthode

trigger the clock for a tick, for better granuality in no_busy_waiting timer.
public Tick ( ) : void
Résultat void

interrupt() public méthode

Stop the sleep() or sleepto() methods.
public interrupt ( ) : void
Résultat void

rdtsc() public static méthode

public static rdtsc ( System.Int64 &x ) : void
x System.Int64
Résultat void

readCPUFrequency() public static méthode

Returns the frequency of the CPU in Mhz
public static readCPUFrequency ( ) : double
Résultat double

triggerEvent() public méthode

public triggerEvent ( ) : void
Résultat void

waitForEvent() public méthode

public waitForEvent ( ) : void
Résultat void

Property Details

CPUFrequency public_oe static_oe property

public static double CPUFrequency
Résultat double

gMhzFactor public_oe static_oe property

public static Int64,System gMhzFactor
Résultat System.Int64