C# Class Capture.FixedStepDispatcherTimer

Similar to the timer class except for this timer does not loose time over time. This timer has almost no drift. Source: John Leidegren (2010, http://stackoverflow.com/a/3250747/2352507)
Afficher le fichier Open project: SunsetQuest/IBMarketRecorder Class Usage Examples

Méthodes publiques

Méthode Description
FixedStepDispatcherTimer ( System.TimeSpan interval ) : System
OnTimerTick ( object sender, EventArgs e ) : void
Reset ( ) : void
Restart ( System.DateTime startAt ) : void
Start ( ) : void
Stop ( ) : void

Private Methods

Méthode Description
GetTimerInterval ( ) : System.TimeSpan

Method Details

FixedStepDispatcherTimer() public méthode

public FixedStepDispatcherTimer ( System.TimeSpan interval ) : System
interval System.TimeSpan
Résultat System

OnTimerTick() public méthode

public OnTimerTick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

Restart() public méthode

public Restart ( System.DateTime startAt ) : void
startAt System.DateTime
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void