Click or drag to resize

Profiler.LogAverageTime Method

Measures the execution time of a method.

Namespace:  BionicCode.Utilities.Net.Standard.Profiling
Assembly:  BionicCode.Utilities.Net.Standard (in BionicCode.Utilities.Net.Standard.dll) Version: 1.0.4
Syntax
public static TimeSpan LogAverageTime(
	Action action,
	int runCount
)

Parameters

action
Type: System.Action
The code to measure execution time.
runCount
Type: System.Int32
Number of iterations the action should be executed.

Return Value

Type: TimeSpan
The average execution time of all runCount number of iterations as TimeSpan.
Remarks
Specify a LogPrinterAction to customize the output target and formatting.
See Also
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md