Click or drag to resize

PerfCounterMeasureFunctionRetVal Method

Measures timing in a function that returns result.

Namespace:  KSPDev.DebugUtils
Assembly:  KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntax
C#
public RetVal MeasureFunction<RetVal>(
	Func<RetVal> fn
)
Request Example View Source

Parameters

fn
Type: SystemFuncRetVal
The function to measure.

Type Parameters

RetVal
The return parameter of the measured function.

Return Value

Type: RetVal
The value from the measured function.
See Also