chromium/third_party/grpc/src/src/core/lib/gpr/time.cc

//
//
// 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
//
//     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.
//
//

// Generic implementation of time calls.

#include <grpc/support/port_platform.h>

#include <limits.h>
#include <stdio.h>
#include <string.h>

#include <grpc/support/log.h>
#include <grpc/support/time.h>

#include "src/core/lib/gprpp/crash.h"

int gpr_time_cmp(gpr_timespec a, gpr_timespec b) {}

gpr_timespec gpr_time_min(gpr_timespec a, gpr_timespec b) {}

gpr_timespec gpr_time_max(gpr_timespec a, gpr_timespec b) {}

gpr_timespec gpr_time_0(gpr_clock_type type) {}

gpr_timespec gpr_inf_future(gpr_clock_type type) {}

gpr_timespec gpr_inf_past(gpr_clock_type type) {}

static gpr_timespec to_seconds_from_sub_second_time(int64_t time_in_units,
                                                    int64_t units_per_sec,
                                                    gpr_clock_type type) {}

static gpr_timespec to_seconds_from_above_second_time(int64_t time_in_units,
                                                      int64_t secs_per_unit,
                                                      gpr_clock_type type) {}

gpr_timespec gpr_time_from_nanos(int64_t ns, gpr_clock_type clock_type) {}

gpr_timespec gpr_time_from_micros(int64_t us, gpr_clock_type clock_type) {}

gpr_timespec gpr_time_from_millis(int64_t ms, gpr_clock_type clock_type) {}

gpr_timespec gpr_time_from_seconds(int64_t s, gpr_clock_type clock_type) {}

gpr_timespec gpr_time_from_minutes(int64_t m, gpr_clock_type clock_type) {}

gpr_timespec gpr_time_from_hours(int64_t h, gpr_clock_type clock_type) {}

gpr_timespec gpr_time_add(gpr_timespec a, gpr_timespec b) {}

gpr_timespec gpr_time_sub(gpr_timespec a, gpr_timespec b) {}

int gpr_time_similar(gpr_timespec a, gpr_timespec b, gpr_timespec threshold) {}

int32_t gpr_time_to_millis(gpr_timespec t) {}

double gpr_timespec_to_micros(gpr_timespec t) {}

gpr_timespec gpr_convert_clock_type(gpr_timespec t, gpr_clock_type clock_type) {}