C# Class Raspberry.Timers.HighResolutionTimer

Represents a high-resolution timer.
Inheritance: ITimer
Mostra file Open project: raspberry-sharp/raspberry-sharp-system Class Usage Examples

Public Methods

Method Description
HighResolutionTimer ( ) : System

Initializes a new instance of the HighResolutionTimer class.

Sleep ( System.TimeSpan delay ) : void

Sleeps the specified delay.

Start ( System.TimeSpan startDelay ) : void

Starts this instance.

Stop ( ) : void

Stops this instance.

Private Methods

Method Description
Calibrate ( ) : int
NoOp ( ) : void
ThreadProcess ( ) : void

Method Details

HighResolutionTimer() public method

Initializes a new instance of the HighResolutionTimer class.
public HighResolutionTimer ( ) : System
return System

Sleep() public static method

Sleeps the specified delay.
public static Sleep ( System.TimeSpan delay ) : void
delay System.TimeSpan The delay.
return void

Start() public method

Starts this instance.
public Start ( System.TimeSpan startDelay ) : void
startDelay System.TimeSpan The delay before the first occurence, in milliseconds.
return void

Stop() public method

Stops this instance.
public Stop ( ) : void
return void