mn_timestamp.hpp
Go to the documentation of this file.
This class represents a time span (using microseconds)
Definition: mn_timespan.hpp:35
int_type get_total_microseconds() const
Get the total number of microseconds.
Definition: mn_timespan.cpp:191
A Timestamp stores a monotonic* time value with microseconds resolution.
Definition: mn_timestamp.hpp:40
static self_type from_utc(const time_type val)
Creates a timestamp from a UTC time value.
Definition: mn_timestamp.cpp:54
time_type get_elapsed() const
Get the time elapsed since the time denoted by the timestamp.
Definition: mn_timestamp.hpp:94
time_type get_microseconds() const
Get the timestamp expressed in microseconds.
Definition: mn_timestamp.hpp:87
bool operator!=(const self_type &ts) const
Definition: mn_timestamp.hpp:108
self_type & operator=(const self_type &other)
Definition: mn_timestamp.hpp:153
bool is_elapsed(time_type interval) const
if the given interval has passed since the time denoted by the timestamp.
Definition: mn_timestamp.hpp:102
bool operator<(const self_type &ts) const
Definition: mn_timestamp.hpp:117
bool operator==(const self_type &ts) const
Definition: mn_timestamp.hpp:105
bool operator<=(const self_type &ts) const
Definition: mn_timestamp.hpp:114
static self_type from_epoch(const mn::time_t t)
Creates a timestamp from a mn::time_t.
Definition: mn_timestamp.cpp:49
basic_timestamp()
Consruct a basic_timestamp with the current time.
Definition: mn_timestamp.cpp:29
bool operator>=(const self_type &ts) const
Definition: mn_timestamp.hpp:111
time_type operator+(const self_type &ts) const
Definition: mn_timestamp.hpp:126
time_type get_utc() const
Get the timestamp expressed in UTC-based time.
Definition: mn_timestamp.hpp:80
time_type operator-(const self_type &ts) const
Definition: mn_timestamp.hpp:123
bool operator>(const self_type &ts) const
Definition: mn_timestamp.hpp:120
The template and inlines for the numeric_limits classes. -*- C++ -*- This file is part of the Mini Th...
Definition: mn_allocator_typetraits.hpp:25