PerfCounterMeasureFunctionRetVal Method |
Measures timing in a function that returns result.
Namespace:
KSPDev.DebugUtils
Assembly:
KSPDev_Utils.2.3 (in KSPDev_Utils.2.3.dll) Version: 2.3 for KSP v1
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