C# Class Mash.Chronograph.StopwatchChronograph

An implementation of IChronograph based on the System.Diagnostics.Stopwatch
Inheritance: IChronograph
Datei anzeigen Open project: drwill/mash

Public Methods

Method Description
MeasureAction ( System.Action theAction ) : System.TimeSpan
MeasureActionAsync ( Func theAction ) : Task
Restart ( ) : Session
Start ( ) : void
Stop ( ) : System.TimeSpan

Private Methods

Method Description
StopwatchChronograph ( string name ) : System

Method Details

MeasureAction() public method

public MeasureAction ( System.Action theAction ) : System.TimeSpan
theAction System.Action
return System.TimeSpan

MeasureActionAsync() public method

public MeasureActionAsync ( Func theAction ) : Task
theAction Func
return Task

Restart() public method

public Restart ( ) : Session
return Session

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : System.TimeSpan
return System.TimeSpan