Go to the documentation of this file.
15 #ifndef GRPC_CORE_LIB_GPRPP_TIME_H
16 #define GRPC_CORE_LIB_GPRPP_TIME_H
35 namespace time_detail {
291 return *
this = (*
this + duration);
301 #endif // GRPC_CORE_LIB_GPRPP_TIME_H
static constexpr Duration Hours(int64_t hours)
std::chrono::duration< std::int_fast64_t > seconds
constexpr bool operator==(Timestamp other) const
static Duration FromSecondsAsDouble(double seconds)
Duration operator+(Duration lhs, Duration rhs)
void TestOnlySetProcessEpoch(gpr_timespec epoch)
std::chrono::duration< int64_t, std::nano > Duration
static constexpr Duration NanosecondsRoundDown(int64_t nanos)
static constexpr Timestamp InfPast()
constexpr bool operator>(Timestamp other) const
static constexpr Duration MicrosecondsRoundDown(int64_t micros)
constexpr bool operator>(Duration other) const
constexpr bool operator==(Duration other) const
constexpr bool operator<(Duration other) const
constexpr bool operator<=(Timestamp other) const
Duration operator-(Duration lhs, Duration rhs)
std::ostream & operator<<(std::ostream &out, Timestamp timestamp)
std::string ToString() const
constexpr bool operator>=(Timestamp other) const
constexpr Duration(int64_t millis)
uint64_t milliseconds_after_process_epoch() const
static Duration FromSecondsAndNanoseconds(int64_t seconds, int32_t nanos)
unsigned __int64 uint64_t
Duration & operator/=(int64_t divisor)
constexpr int64_t MillisMul(int64_t millis, int64_t mul)
std::string ToString() const
Timestamp & operator+=(Duration duration)
int64_t epoch(int year, int yday, int hour, int min, int sec)
static Duration FromTimespec(gpr_timespec t)
int64_t SaturatingAdd(int64_t a, int64_t b)
Duration & operator+=(Duration other)
static constexpr Duration Epsilon()
std::string ToJsonString() const
static constexpr Timestamp ProcessEpoch()
constexpr bool operator!=(Duration other) const
static constexpr Duration NegativeInfinity()
static constexpr Duration MicrosecondsRoundUp(int64_t micros)
constexpr bool operator<(Timestamp other) const
static constexpr Timestamp FromMillisecondsAfterProcessEpoch(int64_t millis)
static constexpr Duration Zero()
constexpr bool operator<=(Duration other) const
static constexpr Duration Milliseconds(int64_t millis)
constexpr int64_t millis() const
constexpr bool operator>=(Duration other) const
Duration operator*(Duration lhs, double rhs)
constexpr Timestamp()=default
static Timestamp FromCycleCounterRoundDown(gpr_cycle_counter c)
gpr_timespec as_timespec() const
static Timestamp FromTimespecRoundDown(gpr_timespec t)
static constexpr Duration Seconds(int64_t seconds)
constexpr bool operator!=(Timestamp other) const
constexpr Timestamp(int64_t millis)
static Timestamp FromCycleCounterRoundUp(gpr_cycle_counter c)
static constexpr Duration NanosecondsRoundUp(int64_t nanos)
static constexpr Timestamp InfFuture()
bool is_process_epoch() const
static Timestamp FromTimespecRoundUp(gpr_timespec t)
int64_t MillisAdd(int64_t a, int64_t b)
constexpr Duration() noexcept
gpr_timespec as_timespec(gpr_clock_type type) const
static constexpr Duration Infinity()
static constexpr Duration Minutes(int64_t minutes)
Duration operator/(Duration lhs, int64_t rhs)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:36