13#include "llvm/Support/raw_ostream.h"
54 Point
operator+(
const Point&,
const Span&);
55 Point
operator+(
const Span&,
const Point&);
56 Point
operator-(
const Point&,
const Span&);
57 Span
operator-(
const Point&,
const Point&);
60 bool operator<(
const Point&,
const Point&);
62 bool operator>(
const Point&,
const Point&);
65 namespace {
using Duration = std::chrono::steady_clock::duration; }
73 explicit Span(
const std::string &s);
83 explicit operator Duration()
const;
84 explicit operator bool()
const;
85 explicit operator timeval()
const;
89 std::tuple<std::uint32_t, std::uint8_t, std::uint8_t>
toHMS()
const;
bool operator>(const Point &, const Point &)
Span microseconds(std::uint64_t)
Point operator+(const Point &, const Span &)
Span getUserTime()
Returns time spent by this process in user mode.
Span nanoseconds(std::uint64_t)
Span minutes(std::uint16_t)
Span operator/(const Span &, unsigned)
Span hours(std::uint16_t)
time spans
Point getWallTime()
Returns point in time using a monotonic steady clock.
bool operator>=(const Point &, const Point &)
Span operator*(const Span &, double)
std::string getClockInfo()
Returns information about clock.
bool operator<=(const Point &, const Point &)
bool operator==(const Point &, const Point &)
Span seconds(std::uint64_t)
Span milliseconds(std::uint64_t)
bool operator!=(const Point &, const Point &)
bool operator<(const Point &, const Point &)
std::ostream & operator<<(std::ostream &, Span)
Span -> "X.Ys".
Point operator-(const Point &, const Span &)
Point & operator+=(const Span &)
Point & operator-=(const Span &)
std::chrono::steady_clock::time_point SteadyTimePoint
std::tuple< std::uint32_t, std::uint8_t, std::uint8_t > toHMS() const
std::uint64_t toMicroseconds() const
Span & operator*=(unsigned)
Span & operator-=(const Span &)
Span & operator=(const Duration &)
Span & operator+=(const Span &)