diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/libs/grpc/src/cpp/util/time_cc.cc | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/grpc/src/cpp/util/time_cc.cc')
-rw-r--r-- | contrib/libs/grpc/src/cpp/util/time_cc.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/contrib/libs/grpc/src/cpp/util/time_cc.cc b/contrib/libs/grpc/src/cpp/util/time_cc.cc index 6c9c228d7c..2bfe2bd40e 100644 --- a/contrib/libs/grpc/src/cpp/util/time_cc.cc +++ b/contrib/libs/grpc/src/cpp/util/time_cc.cc @@ -1,27 +1,27 @@ /* * - * Copyright 2015 gRPC authors. + * Copyright 2015 gRPC authors. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. * */ #include <grpc/support/time.h> -#include <grpcpp/support/config.h> -#include <grpcpp/support/time.h> +#include <grpcpp/support/config.h> +#include <grpcpp/support/time.h> using std::chrono::duration_cast; -using std::chrono::high_resolution_clock; +using std::chrono::high_resolution_clock; using std::chrono::nanoseconds; using std::chrono::seconds; using std::chrono::system_clock; @@ -39,8 +39,8 @@ void Timepoint2Timespec(const system_clock::time_point& from, return; } nanoseconds nsecs = duration_cast<nanoseconds>(deadline - secs); - to->tv_sec = static_cast<int64_t>(secs.count()); - to->tv_nsec = static_cast<int32_t>(nsecs.count()); + to->tv_sec = static_cast<int64_t>(secs.count()); + to->tv_nsec = static_cast<int32_t>(nsecs.count()); to->clock_type = GPR_CLOCK_REALTIME; } @@ -55,8 +55,8 @@ void TimepointHR2Timespec(const high_resolution_clock::time_point& from, return; } nanoseconds nsecs = duration_cast<nanoseconds>(deadline - secs); - to->tv_sec = static_cast<int64_t>(secs.count()); - to->tv_nsec = static_cast<int32_t>(nsecs.count()); + to->tv_sec = static_cast<int64_t>(secs.count()); + to->tv_nsec = static_cast<int32_t>(nsecs.count()); to->clock_type = GPR_CLOCK_REALTIME; } |