#include <rate.h>
|
| | CRate (Real f_rate) |
| | Class constructor.
|
| |
| | ~CRate () |
| | Class destructor.
|
| |
| UInt64 | ElapsedUS () const |
| | Returns the time elapsed since the last sleep in microseconds.
|
| |
| Real | ElapsedS () const |
| | Returns the time elapsed since the last sleep in seconds.
|
| |
| void | Sleep () |
| | Sleeps for the appropriate time to complete the period.
|
| |
| Real | GetRate () const |
| | Returns the rate.
|
| |
| void | SetRate (Real f_rate) |
| | Sets the rate and resets the internal clock.
|
| |
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.
The documentation for this class was generated from the following files: