C# Class Mash.Chronograph.StopwatchChronograph

An implementation of IChronograph based on the System.Diagnostics.Stopwatch
Inheritance: IChronograph
Afficher le fichier Open project: drwill/mash

Méthodes publiques

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

Private Methods

Méthode Description
StopwatchChronograph ( string name ) : System

Method Details

MeasureAction() public méthode

public MeasureAction ( System.Action theAction ) : System.TimeSpan
theAction System.Action
Résultat System.TimeSpan

MeasureActionAsync() public méthode

public MeasureActionAsync ( Func theAction ) : Task
theAction Func
Résultat Task

Restart() public méthode

public Restart ( ) : Session
Résultat Session

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : System.TimeSpan
Résultat System.TimeSpan