Back to Adaptive Vision Library website
You are here: Start » Function Reference » Time » MeasurePeriod
MeasurePeriod
Returns elapsed time in milliseconds from last filter call.
Syntax
void avl::MeasurePeriod ( MeasureState& ioState, float& outTime, float& outFrequency )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
ioState | MeasureState& | Object used to maintain state of the function. | ||
outTime | float& | Elapsed time in milliseconds | ||
outFrequency | float& | The resulting frequency in Hz or FPS |
Description
This filter returns elapsed time outTime in milliseconds from it's last call.
The outFrequency is the momentary frequency in Hz, i.e. iterations per second.
Remarks
On the first call of this filter, the returned values of outTime and outFrequency are zero.