BipedalLocomotion::System::Timer class

Timer is a simple class that can be used to measure the time between two events.

Public functions

void resetAverageDuration()
Reset the average duration.
void setInitTime()
Set initial time.
void setEndTime()
Set final time.
void evaluateDuration()
Evaluate the average duration.
auto getAverageDuration() const -> const std::chrono::nanoseconds&
Get the average duration.

Function documentation

const std::chrono::nanoseconds& BipedalLocomotion::System::Timer::getAverageDuration() const

Get the average duration.

Returns average duration.