GRPC C++  1.30.0
gpr_types.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPC_IMPL_CODEGEN_GPR_TYPES_H
20 #define GRPC_IMPL_CODEGEN_GPR_TYPES_H
21 
23 
24 #include <stddef.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
31 typedef enum {
44 
47 typedef struct gpr_timespec {
48  int64_t tv_sec;
49  int32_t tv_nsec;
53 } gpr_timespec;
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* GRPC_IMPL_CODEGEN_GPR_TYPES_H */
gpr_timespec::tv_nsec
int32_t tv_nsec
Definition: gpr_types.h:49
GPR_TIMESPAN
Unmeasurable clock type: no base, created by taking the difference between two times.
Definition: gpr_types.h:42
gpr_timespec::tv_sec
int64_t tv_sec
Definition: gpr_types.h:48
GPR_CLOCK_MONOTONIC
Monotonic clock.
Definition: gpr_types.h:33
gpr_timespec
struct gpr_timespec gpr_timespec
Analogous to struct timespec.
gpr_timespec::clock_type
gpr_clock_type clock_type
Against which clock was this time measured? (or GPR_TIMESPAN if this is a relative time measure)
Definition: gpr_types.h:52
GPR_CLOCK_PRECISE
CPU cycle time obtained by rdtsc instruction on x86 platforms.
Definition: gpr_types.h:39
port_platform.h
gpr_timespec
Analogous to struct timespec.
Definition: gpr_types.h:47
GPR_CLOCK_REALTIME
Realtime clock.
Definition: gpr_types.h:36
gpr_clock_type
gpr_clock_type
The clocks we support.
Definition: gpr_types.h:31