#include <rate.h>
Definition at line 27 of file rate.h.
◆ CRate()
CRate::CRate |
( |
Real |
f_rate | ) |
|
Class constructor.
- Parameters
-
f_rate | The number of ticks per second. |
Definition at line 9 of file rate.cpp.
◆ ~CRate()
Class destructor.
Definition at line 40 of file rate.h.
◆ ElapsedS()
Real CRate::ElapsedS |
( |
| ) |
const |
Returns the time elapsed since the last sleep in seconds.
Definition at line 29 of file rate.cpp.
◆ ElapsedUS()
UInt64 CRate::ElapsedUS |
( |
| ) |
const |
Returns the time elapsed since the last sleep in microseconds.
Definition at line 16 of file rate.cpp.
◆ GetRate()
Real argos::CRate::GetRate |
( |
| ) |
const |
|
inline |
Returns the rate.
Definition at line 62 of file rate.h.
◆ SetRate()
void CRate::SetRate |
( |
Real |
f_rate | ) |
|
Sets the rate and resets the internal clock.
- Parameters
-
f_rate | The number of ticks per second. |
Definition at line 62 of file rate.cpp.
◆ Sleep()
Sleeps for the appropriate time to complete the period.
If the period was exceeded before this call, this method does not sleep and, instead, write a warning on the log.
Definition at line 38 of file rate.cpp.