GRPC C++  1.81.0
Data Structures | Namespaces | Functions
time.h File Reference
#include <grpc/impl/codegen/gpr_types.h>
#include <grpc/impl/grpc_types.h>
#include <grpc/support/time.h>
#include <grpcpp/support/config.h>
#include <chrono>
#include "absl/time/clock.h"
#include "absl/time/time.h"

Go to the source code of this file.

Data Structures

class  grpc::TimePoint< T >
 If you are trying to use CompletionQueue::AsyncNext with a time class that isn't either gpr_timespec or std::chrono::system_clock::time_point, you will most likely be looking at this comment as your compiler will have fired an error below. More...
 
class  grpc::TimePoint< gpr_timespec >
 
class  grpc::TimePoint< absl::Time >
 
class  grpc::TimePoint< std::chrono::system_clock::time_point >
 

Namespaces

 grpc
 An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided function on expiry or cancellation.
 

Functions

void grpc::Timepoint2Timespec (const std::chrono::system_clock::time_point &from, gpr_timespec *to)
 
void grpc::TimepointHR2Timespec (const std::chrono::high_resolution_clock::time_point &from, gpr_timespec *to)
 
std::chrono::system_clock::time_point grpc::Timespec2Timepoint (gpr_timespec t)
 
absl::Time grpc::TimeFromGprTimespec (gpr_timespec time)
 
gpr_timespec grpc::GprTimeSpecFromTime (absl::Time)
 
absl::Duration grpc::DurationFromGprTimespec (gpr_timespec time)
 
gpr_timespec grpc::GprTimeSpecFromDuration (absl::Duration)
 
gpr_timespec grpc::DeadlineFromDuration (absl::Duration dur)