Back to Aurora Vision Library Lite website

You are here: Start » System » Time » MeasurePeriod

MeasurePeriod


Header: STD.h
Namespace: avl

Returns elapsed time in milliseconds from last filter call.

Syntax

void avl::MeasurePeriod
(
	MeasureState& ioState,
	float& outTime,
	float& outFrequency
)

Parameters

Name Type Default Description
Input will be modified ioState MeasureState& Object used to maintain state of the function.
Output value outTime float& Elapsed time in milliseconds
Output value 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.

See Also

  • DelayByPeriod – Suspends the program workflow for inTime milliseconds relative to the end of the filter's last invoke time.
  • Delay – Suspends the program workflow for inTime milliseconds.