Apollo 10.0
自动驾驶开放平台
|
a singleton clock that can be used to get the current timestamp. 更多...
#include <clock.h>
静态 Public 成员函数 | |
static Time | Now () |
PRECISION >= 1000000 means the precision is at least 1us. | |
static double | NowInSeconds () |
gets the current time in second. | |
static void | SetNow (const Time &now) |
This is for mock clock mode only. | |
static void | SetMode (ClockMode mode) |
static ClockMode | mode () |
Gets the current clock mode. | |
static void | SetNowInSeconds (const double seconds) |
This is for mock clock mode only. | |
静态 Public 属性 | |
static constexpr int64_t | PRECISION |
a singleton clock that can be used to get the current timestamp.
The source can be either system(cyber) clock or a mock clock. Mock clock is for testing purpose mainly.
|
static |
Gets the current clock mode.
|
static |
PRECISION >= 1000000 means the precision is at least 1us.
get current time.
|
static |
gets the current time in second.
|
static |
|
static |
This is for mock clock mode only.
It will set the timestamp for the mock clock.
|
inlinestatic |
This is for mock clock mode only.
It will set the timestamp for the mock clock with UNIX timestamp in seconds.
|
staticconstexpr |