blob: 8ad337d582cd1bccb582b5be2fef4974df97e6a1 [file] [log] [blame]
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "vm_tools/cicerone/grpc_util.h"
#include <grpcpp/grpcpp.h>
namespace vm_tools::cicerone {
gpr_timespec ToGprDeadline(int64_t seconds) {
return gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC),
gpr_time_from_seconds(seconds, GPR_TIMESPAN));
}
} // namespace vm_tools::cicerone