#include <clock.hpp>
|
typedef int64_t | rep |
|
typedef std::ratio< 1, 1000 *1000 > | period |
|
typedef std::chrono::duration< rep, period > | duration |
|
typedef std::chrono::time_point< Clock > | time_point |
|
typedef boost::posix_time::ptime | date_time |
|
|
static constexpr bool | is_steady () |
|
static time_point | at (const date_time &) |
|
static date_time | at (const time_point &) |
|
static const date_time & | epoch () |
|
static time_point | at (const std::string &at) |
| create time point
|
|
A Clock similar to std::chrono with epoch at 2004-01-01 at midnight
Definition at line 15 of file clock.hpp.
◆ date_time
typedef boost::posix_time::ptime vanetza::Clock::date_time |
◆ duration
typedef std::chrono::duration<rep, period> vanetza::Clock::duration |
◆ period
typedef std::ratio<1, 1000 * 1000> vanetza::Clock::period |
◆ rep
typedef int64_t vanetza::Clock::rep |
◆ time_point
typedef std::chrono::time_point<Clock> vanetza::Clock::time_point |
◆ at() [1/2]
Clock::time_point vanetza::Clock::at |
( |
const date_time & |
t | ) |
|
|
static |
◆ at() [2/2]
Clock::time_point vanetza::Clock::at |
( |
const std::string & |
at | ) |
|
|
static |
create time point
- Parameters
-
at | time string formatted like 2016-07-15 09:48:32 |
- Returns
- time point
Definition at line 29 of file clock.cpp.
◆ epoch()
const boost::posix_time::ptime & vanetza::Clock::epoch |
( |
| ) |
|
|
static |
◆ is_steady()
static constexpr bool vanetza::Clock::is_steady |
( |
| ) |
|
|
inlinestaticconstexpr |
The documentation for this class was generated from the following files: