Click or drag to resize

PerfCounterMeasureFunctionRetVal Method

Measures timing in a function that returns result.

Namespace:  KSPDev.DebugUtils
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
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