The SystemClock class represents the system-wide real time wall clock. It may not be monotonic: on most systems, the system time can be adjusted at any moment.
More...
#include <clock.hpp>
The SystemClock class represents the system-wide real time wall clock. It may not be monotonic: on most systems, the system time can be adjusted at any moment.
Definition at line 167 of file clock.hpp.
The duration type of the clock.
Definition at line 172 of file clock.hpp.
The tick period of the clock in nanoseconds.
Definition at line 171 of file clock.hpp.
The representation type of the duration and time_point.
Definition at line 170 of file clock.hpp.
The time_point type of the clock. Different clocks are permitted to share a time_point definition if it is valid to compare their time_points by comparing their respective durations.
Definition at line 178 of file clock.hpp.
static time_point qi::SystemClock::from_time_t |
( |
const std::time_t & |
t | ) |
|
throw | ( | |
| ) | | |
|
static |
Converts std::time_t to a system clock time point.
- Parameters
-
- Returns
- A time point representing
t
.
Returns a time_point representing the current value of the clock.
static std::time_t qi::SystemClock::to_time_t |
( |
const time_point & |
t | ) |
|
throw | ( | |
| ) | | |
|
static |
Converts a system clock time point to std::time_t.
- Parameters
-
- Returns
- A std::time_t representing
t
.
bool qi::SystemClock::is_steady = false |
true if t1 <= t2 is always true, else false.
- Note
- A SystemClock is never steady.
Definition at line 182 of file clock.hpp.
The documentation for this class was generated from the following file:
- /home/opennao/work/release-2.8/sdk/libqi/qi/clock.hpp