3#include <grpcpp/support/time.h>
5#include <userver/engine/deadline.hpp>
12::gpr_timespec ToGprTimePoint(engine::Deadline::Duration from)
noexcept;
16engine::Deadline::Duration ExtractDeadlineDuration(::gpr_timespec deadline);
23class grpc::TimePoint<USERVER_NAMESPACE::engine::Deadline> {
25 explicit TimePoint(USERVER_NAMESPACE::engine::Deadline time)
noexcept
26 : time_(USERVER_NAMESPACE::ugrpc::impl::ToGprTimePoint(time.TimeLeft())) {
29 ::gpr_timespec raw_time()
const noexcept {
return time_; }