Classes | Typedefs | Enumerations
gpr_types.h File Reference
#include <grpc/impl/codegen/port_platform.h>
#include <stddef.h>
Include dependency graph for gpr_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gpr_timespec
 

Typedefs

typedef struct gpr_timespec gpr_timespec
 

Enumerations

enum  gpr_clock_type { GPR_CLOCK_MONOTONIC = 0, GPR_CLOCK_REALTIME, GPR_CLOCK_PRECISE, GPR_TIMESPAN }
 

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

Definition at line 34 of file gpr_types.h.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:16