C# Class Composable.System.Diagnostics.StopwatchExtensions

Extensions to the Stopwatch class and related functionality.
Show file Open project: mlidbom/Composable.Monolithic

Public Methods

Method Description
TimeExecution ( System.Action action ) : System.TimeSpan

Measures how long it takes to execute action

TimeExecution ( this @this, System.Action action ) : System.TimeSpan

Measures how long it takes to execute action

TimeExecution ( System.Action action, int iterations = 1 ) : TimedExecutionSummary
TimeExecutionThreaded ( System.Action action, int iterations = 1, bool timeIndividualExecutions = false ) : TimedThreadedExecutionSummary

Method Details

TimeExecution() public static method

Measures how long it takes to execute action
public static TimeExecution ( System.Action action ) : System.TimeSpan
action System.Action
return System.TimeSpan

TimeExecution() public static method

Measures how long it takes to execute action
public static TimeExecution ( this @this, System.Action action ) : System.TimeSpan
@this this
action System.Action
return System.TimeSpan

TimeExecution() public static method

public static TimeExecution ( System.Action action, int iterations = 1 ) : TimedExecutionSummary
action System.Action
iterations int
return TimedExecutionSummary

TimeExecutionThreaded() public static method

public static TimeExecutionThreaded ( System.Action action, int iterations = 1, bool timeIndividualExecutions = false ) : TimedThreadedExecutionSummary
action System.Action
iterations int
timeIndividualExecutions bool
return TimedThreadedExecutionSummary