34 #ifndef GRPCXX_SUPPORT_TIME_H
35 #define GRPCXX_SUPPORT_TIME_H
55 TimePoint(
const T& time) { you_need_a_specialization_of_TimePoint(); }
62 void you_need_a_specialization_of_TimePoint();
68 TimePoint(
const gpr_timespec& time) : time_(time) {}
77 #ifndef GRPC_CXX0X_NO_CHRONO
81 #include <grpc/support/time.h>
89 const std::chrono::high_resolution_clock::time_point& from,
95 class TimePoint<std::chrono::system_clock::time_point> {
97 TimePoint(
const std::chrono::system_clock::time_point& time) {
108 #endif // !GRPC_CXX0X_NO_CHRONO
110 #endif // GRPCXX_SUPPORT_TIME_H
void TimepointHR2Timespec(const std::chrono::high_resolution_clock::time_point &from, gpr_timespec *to)
gpr_timespec raw_time()
Definition: time.h:56
TimePoint(const gpr_timespec &time)
Definition: time.h:68
TimePoint(const std::chrono::system_clock::time_point &time)
Definition: time.h:97
void Timepoint2Timespec(const std::chrono::system_clock::time_point &from, gpr_timespec *to)
TimePoint(const T &time)
Definition: time.h:55
gpr_timespec raw_time()
Definition: time.h:69
gpr_timespec raw_time() const
Definition: time.h:100
std::chrono::system_clock::time_point Timespec2Timepoint(gpr_timespec t)