Apollo 10.0
自动驾驶开放平台
|
Cyber has builtin time type Time. 更多...
#include <time.h>
Public 成员函数 | |
Time ()=default | |
Time (uint64_t nanoseconds) | |
Time (int nanoseconds) | |
Time (double seconds) | |
Time (uint32_t seconds, uint32_t nanoseconds) | |
Time (const Time &other) | |
Time & | operator= (const Time &other) |
double | ToSecond () const |
convert time to second. | |
uint64_t | ToMicrosecond () const |
convert time to microsecond (us). | |
uint64_t | ToNanosecond () const |
convert time to nanosecond. | |
std::string | ToString () const |
convert time to a string. | |
bool | IsZero () const |
determine if time is 0 | |
Duration | operator- (const Time &rhs) const |
Time | operator+ (const Duration &rhs) const |
Time | operator- (const Duration &rhs) const |
Time & | operator+= (const Duration &rhs) |
Time & | operator-= (const Duration &rhs) |
bool | operator== (const Time &rhs) const |
bool | operator!= (const Time &rhs) const |
bool | operator> (const Time &rhs) const |
bool | operator< (const Time &rhs) const |
bool | operator>= (const Time &rhs) const |
bool | operator<= (const Time &rhs) const |
静态 Public 成员函数 | |
static Time | Now () |
get the current time. | |
static Time | MonoTime () |
static void | SleepUntil (const Time &time) |
Sleep Until time. | |
静态 Public 属性 | |
static const Time | MAX = Time(std::numeric_limits<uint64_t>::max()) |
static const Time | MIN = Time(0) |
|
default |
|
explicit |
|
explicit |
|
explicit |
apollo::cyber::Time::Time | ( | uint32_t | seconds, |
uint32_t | nanoseconds | ||
) |
apollo::cyber::Time::Time | ( | const Time & | other | ) |
bool apollo::cyber::Time::IsZero | ( | ) | const |
|
static |
|
static |
get the current time.
bool apollo::cyber::Time::operator!= | ( | const Time & | rhs | ) | const |
bool apollo::cyber::Time::operator< | ( | const Time & | rhs | ) | const |
bool apollo::cyber::Time::operator<= | ( | const Time & | rhs | ) | const |
bool apollo::cyber::Time::operator== | ( | const Time & | rhs | ) | const |
bool apollo::cyber::Time::operator> | ( | const Time & | rhs | ) | const |
bool apollo::cyber::Time::operator>= | ( | const Time & | rhs | ) | const |
|
static |
Sleep Until time.
time | the Time object. |
uint64_t apollo::cyber::Time::ToMicrosecond | ( | ) | const |
uint64_t apollo::cyber::Time::ToNanosecond | ( | ) | const |
double apollo::cyber::Time::ToSecond | ( | ) | const |
std::string apollo::cyber::Time::ToString | ( | ) | const |
convert time to a string.