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)
ファイルを表示 Open project: SunsetQuest/IBMarketRecorder Class Usage Examples

Public Methods

Method 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

Method Description
GetTimerInterval ( ) : System.TimeSpan

Method Details

FixedStepDispatcherTimer() public method

public FixedStepDispatcherTimer ( System.TimeSpan interval ) : System
interval System.TimeSpan
return System

OnTimerTick() public method

public OnTimerTick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Reset() public method

public Reset ( ) : void
return void

Restart() public method

public Restart ( System.DateTime startAt ) : void
startAt System.DateTime
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void