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+
Syntaxpublic RetVal MeasureFunction<RetVal>(
Func<RetVal> fn
)
Request Example
View SourceParameters
- fn
- Type: SystemFuncRetVal
The function to measure.
Type Parameters
- RetVal
- The return parameter of the measured function.
Return Value
Type:
RetValThe value from the measured function.
See Also