Click or drag to resize

Profiler.LogTime 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 LogTime(
	Action action
)

Parameters

action
Type: System.Action
The code to measure execution time.

Return Value

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