C# Class MediaOwl.Core.StopWatch

The StopWatch uses a DispatcherTimer to fire an EventHandler when a TimeSpan passed.
Datei anzeigen Open project: Slesa/Playground Class Usage Examples

Public Methods

Method Description
Start ( ) : void

Start the StopWatch. The StopWatchStarting-Event is fired./>

Stop ( ) : void

Stops the StopWatch early. Does not fire the StopWatchEnded-Event.

StopWatch ( int stop, int interval = 1000 ) : System

The Constructor

Private Methods

Method Description
StopWatchTick ( object sender, EventArgs eventArgs ) : void

Method Details

Start() public method

Start the StopWatch. The StopWatchStarting-Event is fired./>
public Start ( ) : void
return void

Stop() public method

Stops the StopWatch early. Does not fire the StopWatchEnded-Event.
public Stop ( ) : void
return void

StopWatch() public method

The Constructor
public StopWatch ( int stop, int interval = 1000 ) : System
stop int The milliseconds to fire the -Event when passed.
interval int After each milliseconds-interval it is controlled wether to fire the -Event or not.
return System