aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Hongyu Chen <hongyu@google.com>2015-08-24 16:27:19 -0700
committerGravatar Hongyu Chen <hongyu@google.com>2015-08-24 16:27:19 -0700
commita0f149e8732c58241795ba6ea198819e359437d2 (patch)
treebf5ad8f7246a42aa7fd5484e6a73d3e5124866c2 /include
parent0ea28f1ca565e65d7295249ce86bf73647af0929 (diff)
Move core/profiling/timers_preciseclock.h to core/support/ such that we
have a gpr public function which returns cycle clock.
Diffstat (limited to 'include')
-rw-r--r--include/grpc/support/time.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/grpc/support/time.h b/include/grpc/support/time.h
index 4ef9c76459..f8ed893bc0 100644
--- a/include/grpc/support/time.h
+++ b/include/grpc/support/time.h
@@ -52,6 +52,9 @@ typedef enum {
/* 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_REALTIME,
+ /* CPU cycle time obtained by rdtsc instruction on x86 platforms. Epoch
+ undefined. Degrades to GPR_CLOCK_REALTIME on other platforms. */
+ GPR_CLOCK_PRECISE,
/* Unmeasurable clock type: no base, created by taking the difference
between two times */
GPR_TIMESPAN