13 #ifndef __PROCESS_TIME_HPP__ 14 #define __PROCESS_TIME_HPP__ 38 double secs()
const {
return sinceEpoch.
secs(); }
40 bool operator<(
const Time& t)
const {
return sinceEpoch < t.sinceEpoch; }
42 bool operator>(
const Time& t)
const {
return sinceEpoch > t.sinceEpoch; }
61 return sinceEpoch - that.sinceEpoch;
84 explicit Time(
const Duration& _sinceEpoch) : sinceEpoch(_sinceEpoch) {}
106 std::ostream& stream,
143 #endif // __PROCESS_TIME_HPP__ bool operator<(const Time &t) const
Definition: time.hpp:40
std::ostream & operator<<(std::ostream &stream, const Future< T > &future)
Definition: future.hpp:1826
Time operator-(const Duration &duration) const
Definition: time.hpp:71
bool operator>(const Time &t) const
Definition: time.hpp:42
RFC1123(const Time &_time)
Definition: time.hpp:102
Definition: duration.hpp:32
static Try< Time > create(double seconds)
bool operator>=(const Time &t) const
Definition: time.hpp:43
Time()
Definition: time.hpp:29
Time & operator+=(const Duration &d)
Definition: time.hpp:47
bool operator!=(const Time &t) const
Definition: time.hpp:45
double secs() const
Definition: duration.hpp:49
double secs() const
Definition: time.hpp:38
bool operator==(const Time &t) const
Definition: time.hpp:44
static constexpr Duration zero()
Definition: duration.hpp:136
Time operator+(const Duration &duration) const
Definition: time.hpp:64
Definition: executor.hpp:48
static Time max()
Definition: time.hpp:88
RFC3339(const Time &_time)
Definition: time.hpp:122
Duration duration() const
Definition: time.hpp:36
Try< std::string > format(const std::string &fmt, va_list args)
Definition: format.hpp:68
Duration operator-(const Time &that) const
Definition: time.hpp:59
Time & operator-=(const Duration &d)
Definition: time.hpp:53
static constexpr Duration max()
Definition: duration.hpp:429
Try< std::vector< Value > > time(const std::string &hierarchy, const std::string &cgroup)
static Time epoch()
Definition: time.hpp:87
bool operator<=(const Time &t) const
Definition: time.hpp:41