gusimplewhiteboard
|
Class for working with timing and clock messages. More...
#include <Clocks.hpp>
Public Member Functions | |
int64_t | get (uint8_t clock_id) const |
clock counter getter More... | |
void | set (int clock_id, int64_t value) |
clock counter setter More... | |
void | reset (int clock_id) |
reset a clock counter to the current time More... | |
int64_t | time (int clock_id) |
get the current time since last reset of a given clock More... | |
int64_t | time_ms (int clock_id) |
time since last reset in ms More... | |
Clocks (const std::string &state) | |
string constructor More... | |
std::string | description () const |
convert to a string More... | |
void | from_string (const std::string &str) |
convert from a string More... | |
![]() | |
ARRAY_PROPERTY (wb_clocks_t, clocks, sizeof(gu_simple_message)/sizeof(wb_clocks_t)) wb_clocks() | |
array of clock counters More... | |
Class for working with timing and clock messages.
reset timer 3 to the current time Clocks c = Clocks_t.get(); c.reset(3);
get the time since the last reset of clock 3 Clocks c = Clock_t.get(); long long t = c.timeSince(3);
Definition at line 86 of file Clocks.hpp.
|
inline |
|
inline |
|
inline |
convert from a string
Definition at line 125 of file Clocks.hpp.
References VALID_KEYVALUE.
Referenced by Clocks().
|
inline |
|
inline |
reset a clock counter to the current time
Definition at line 98 of file Clocks.hpp.
|
inline |
clock counter setter
Definition at line 95 of file Clocks.hpp.
|
inline |
get the current time since last reset of a given clock
Definition at line 101 of file Clocks.hpp.
|
inline |
time since last reset in ms
Definition at line 104 of file Clocks.hpp.