GRPC Core  10.0.0
Data Structures | Typedefs | Enumerations
gpr_types.h File Reference
#include <grpc/impl/codegen/port_platform.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  gpr_timespec
 Analogous to struct timespec. More...
 

Typedefs

typedef struct gpr_timespec gpr_timespec
 Analogous to struct timespec. More...
 

Enumerations

enum  gpr_clock_type { GPR_CLOCK_MONOTONIC = 0, GPR_CLOCK_REALTIME, GPR_CLOCK_PRECISE, GPR_TIMESPAN }
 The clocks we support. More...
 

Typedef Documentation

◆ gpr_timespec

typedef struct gpr_timespec gpr_timespec

Analogous to struct timespec.

On some machines, absolute times may be in local time.

Enumeration Type Documentation

◆ gpr_clock_type

The clocks we support.

Enumerator
GPR_CLOCK_MONOTONIC 

Monotonic clock.

Epoch undefined. Always moves forwards.

GPR_CLOCK_REALTIME 

Realtime clock.

May jump forwards or backwards. Settable by the system administrator. Has its epoch at 0:00:00 UTC 1 Jan 1970.

GPR_CLOCK_PRECISE 

CPU cycle time obtained by rdtsc instruction on x86 platforms.

Epoch undefined. Degrades to GPR_CLOCK_REALTIME on other platforms.

GPR_TIMESPAN 

Unmeasurable clock type: no base, created by taking the difference between two times.