|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef INCLUDE_ELM_UTIL_TIME_H_
22 #define INCLUDE_ELM_UTIL_TIME_H_
24 #include <elm/types.h>
25 #include <elm/io/Output.h>
40 inline Time(
int t): _t(t) { }
t::int64 micros() const
Definition: Time.h:46
typename type_info< T >::out_t out
Definition: type_info.h:284
Time(const Time &t)
Definition: Time.h:43
const static t::int64 ONE_S
Definition: Time.h:33
Time(t::uint64 t)
Definition: Time.h:42
AutoString & operator<<(CString str, const T &value)
Definition: AutoString.h:75
const static t::int64 ONE_H
Definition: Time.h:35
const static t::int64 ONE_MS
Definition: Time.h:32
Time()
Definition: Time.h:39
const static t::int64 ONE_M
Definition: Time.h:34
long int64
Definition: arch.h:32
bool operator!=(const Time &t) const
Definition: Time.h:60
bool operator<(const Time &t) const
Definition: Time.h:61
Time operator-(const Time &t) const
Definition: Time.h:55
Time operator/(const Time &t) const
Definition: Time.h:57
const static t::int64 ONE_Y
Definition: Time.h:37
bool operator==(const Time &t) const
Definition: Time.h:59
t::int64 mins() const
Definition: Time.h:49
t::int64 time() const
Definition: Time.h:45
t::int64 millis() const
Definition: Time.h:47
unsigned long uint64
Definition: arch.h:33
const static t::int64 ONE_D
Definition: Time.h:36
Time operator*(int n) const
Definition: Time.h:56
t::int64 years() const
Definition: Time.h:52
Time(t::int64 t)
Definition: Time.h:41
Time operator+(const Time &t) const
Definition: Time.h:54
t::int64 hours() const
Definition: Time.h:50
bool operator>=(const Time &t) const
Definition: Time.h:64
Time(int t)
Definition: Time.h:40
t::int64 days() const
Definition: Time.h:51
bool operator<=(const Time &t) const
Definition: Time.h:62
bool operator>(const Time &t) const
Definition: Time.h:63
t::int64 seconds() const
Definition: Time.h:48