#include <duration.hpp>
|
constexpr | Duration (int64_t value, int64_t unit) |
|
constexpr Duration::Duration |
( |
| ) |
|
|
inline |
Duration::Duration |
( |
const timeval & |
t | ) |
|
|
inlineexplicit |
constexpr Duration::Duration |
( |
int64_t |
value, |
|
|
int64_t |
unit |
|
) |
| |
|
inlineprotected |
double Duration::days |
( |
| ) |
const |
|
inline |
double Duration::hrs |
( |
| ) |
const |
|
inline |
double Duration::mins |
( |
| ) |
const |
|
inline |
double Duration::ms |
( |
| ) |
const |
|
inline |
int64_t Duration::ns |
( |
| ) |
const |
|
inline |
bool Duration::operator!= |
( |
const Duration & |
d | ) |
const |
|
inline |
template<typename T >
Duration Duration::operator* |
( |
T |
multiplier | ) |
const |
|
inline |
template<typename T >
Duration& Duration::operator*= |
( |
T |
multiplier | ) |
|
|
inline |
template<typename T >
Duration Duration::operator/ |
( |
T |
divisor | ) |
const |
|
inline |
template<typename T >
Duration& Duration::operator/= |
( |
T |
divisor | ) |
|
|
inline |
bool Duration::operator< |
( |
const Duration & |
d | ) |
const |
|
inline |
bool Duration::operator<= |
( |
const Duration & |
d | ) |
const |
|
inline |
bool Duration::operator== |
( |
const Duration & |
d | ) |
const |
|
inline |
bool Duration::operator> |
( |
const Duration & |
d | ) |
const |
|
inline |
bool Duration::operator>= |
( |
const Duration & |
d | ) |
const |
|
inline |
Try< Duration > Duration::parse |
( |
const std::string & |
s | ) |
|
|
inlinestatic |
double Duration::secs |
( |
| ) |
const |
|
inline |
struct timeval Duration::timeval |
( |
| ) |
const |
|
inline |
double Duration::us |
( |
| ) |
const |
|
inline |
double Duration::weeks |
( |
| ) |
const |
|
inline |
static constexpr Duration Duration::zero |
( |
| ) |
|
|
inlinestatic |
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const Duration & |
duration |
|
) |
| |
|
friend |
constexpr int64_t Duration::DAYS = 24 * HOURS |
|
staticprotected |
constexpr int64_t Duration::HOURS = 60 * MINUTES |
|
staticprotected |
constexpr int64_t Duration::MICROSECONDS = 1000 * NANOSECONDS |
|
staticprotected |
constexpr int64_t Duration::MILLISECONDS = 1000 * MICROSECONDS |
|
staticprotected |
constexpr int64_t Duration::MINUTES = 60 * SECONDS |
|
staticprotected |
constexpr int64_t Duration::NANOSECONDS = 1 |
|
staticprotected |
constexpr int64_t Duration::WEEKS = 7 * DAYS |
|
staticprotected |
The documentation for this class was generated from the following file: