Cyber has builtin time type Time.
More...
#include <time.h>
Cyber has builtin time type Time.
◆ Time() [1/6]
apollo::cyber::Time::Time |
( |
| ) |
|
|
default |
◆ Time() [2/6]
apollo::cyber::Time::Time |
( |
uint64_t |
nanoseconds | ) |
|
|
explicit |
◆ Time() [3/6]
apollo::cyber::Time::Time |
( |
int |
nanoseconds | ) |
|
|
explicit |
◆ Time() [4/6]
apollo::cyber::Time::Time |
( |
double |
seconds | ) |
|
|
explicit |
◆ Time() [5/6]
apollo::cyber::Time::Time |
( |
uint32_t |
seconds, |
|
|
uint32_t |
nanoseconds |
|
) |
| |
◆ Time() [6/6]
apollo::cyber::Time::Time |
( |
const Time & |
other | ) |
|
◆ IsZero()
bool apollo::cyber::Time::IsZero |
( |
| ) |
const |
determine if time is 0
- Returns
- return true if time is 0
◆ MonoTime()
static Time apollo::cyber::Time::MonoTime |
( |
| ) |
|
|
static |
◆ Now()
static Time apollo::cyber::Time::Now |
( |
| ) |
|
|
static |
get the current time.
- Returns
- return the current time.
◆ operator!=()
bool apollo::cyber::Time::operator!= |
( |
const Time & |
rhs | ) |
const |
◆ operator+()
Time apollo::cyber::Time::operator+ |
( |
const Duration & |
rhs | ) |
const |
◆ operator+=()
Time& apollo::cyber::Time::operator+= |
( |
const Duration & |
rhs | ) |
|
◆ operator-() [1/2]
Duration apollo::cyber::Time::operator- |
( |
const Time & |
rhs | ) |
const |
◆ operator-() [2/2]
Time apollo::cyber::Time::operator- |
( |
const Duration & |
rhs | ) |
const |
◆ operator-=()
Time& apollo::cyber::Time::operator-= |
( |
const Duration & |
rhs | ) |
|
◆ operator<()
bool apollo::cyber::Time::operator< |
( |
const Time & |
rhs | ) |
const |
◆ operator<=()
bool apollo::cyber::Time::operator<= |
( |
const Time & |
rhs | ) |
const |
◆ operator=()
Time& apollo::cyber::Time::operator= |
( |
const Time & |
other | ) |
|
◆ operator==()
bool apollo::cyber::Time::operator== |
( |
const Time & |
rhs | ) |
const |
◆ operator>()
bool apollo::cyber::Time::operator> |
( |
const Time & |
rhs | ) |
const |
◆ operator>=()
bool apollo::cyber::Time::operator>= |
( |
const Time & |
rhs | ) |
const |
◆ SleepUntil()
static void apollo::cyber::Time::SleepUntil |
( |
const Time & |
time | ) |
|
|
static |
Sleep Until time.
- Parameters
-
◆ ToMicrosecond()
uint64_t apollo::cyber::Time::ToMicrosecond |
( |
| ) |
const |
convert time to microsecond (us).
- Returns
- return a unit64_t value unit is us.
◆ ToNanosecond()
uint64_t apollo::cyber::Time::ToNanosecond |
( |
| ) |
const |
convert time to nanosecond.
- Returns
- return a unit64_t value unit is nanosecond.
◆ ToSecond()
double apollo::cyber::Time::ToSecond |
( |
| ) |
const |
convert time to second.
- Returns
- return a double value unit is second.
◆ ToString()
std::string apollo::cyber::Time::ToString |
( |
| ) |
const |
convert time to a string.
- Returns
- return a string.
◆ MAX
const Time apollo::cyber::Time::MAX |
|
static |
◆ MIN
const Time apollo::cyber::Time::MIN |
|
static |
The documentation for this class was generated from the following file: