TimeHelpers Module
Types
Type | Description |
Functions and values
Function or value | Description |
|
|
Full Usage:
aggregate printInterval
Parameters:
float
Returns: InstrumentationControl
|
|
Full Usage:
checkPerformance m n startTimer stopTimer
Parameters:
int
n : int
startTimer : string -> unit
stopTimer : string -> unit
|
|
|
|
Full Usage:
getInterval startTime
Parameters:
float
Returns: float
|
|
Full Usage:
getTimeMs ()
Parameters:
unit
Returns: float
|
|
|
|
Full Usage:
immediate threshold updateThreshold
Parameters:
float
updateThreshold : float
Returns: InstrumentationControl
|
|
Full Usage:
instrumentFunctionCall name func arg
Parameters:
string
func : 'a -> float
arg : 'a
Returns: 'b -> 'b
|
|
Full Usage:
instrumentInterval name startTime output
Parameters:
string
startTime : float
output : 'a
Returns: 'a
|
|
Full Usage:
instrumentTime intervalName intervalStartTime
Parameters:
string
intervalStartTime : float
|
|
|
|
Full Usage:
performanceNow ()
Parameters:
unit
Returns: float
|
|
|
|
Full Usage:
printStats ()
Parameters:
unit
|
|
Full Usage:
recordExecutionTimeStats name f arg
Parameters:
string
f : 'a -> 'b
arg : 'a
Returns: 'b
|
Run (f arg) recording its time in executionStats under name. NB - this will run f multiple times if needed to estimate average speed more accurately. If an execution time of 5ms for this function is too long reduce timeLimit. The multiple time execution will not work, and will give lower than real results, if f is memoised. In that case set timeLimit to 0. for only one execution.
|
Full Usage:
timeNowInMS ()
Parameters:
unit
Returns: float
|
|
Full Usage:
timeNowInMicroS ()
Parameters:
unit
Returns: float
|
|
Full Usage:
updateAgg name time agg
Parameters:
string
time : float
agg : AggregatedData
Returns: AggregatedData
|