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+
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