Click or drag to resize

Profiler.LogTimes 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 List<TimeSpan> LogTimes(
	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: List<TimeSpan>
A list of execution times for all runCount number of iterations TimeSpan.
Remarks
Specify a LogPrinterAction to customize the output target and formatting.
See Also
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md