aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@ctiller.mtv.corp.google.com>2015-11-16 11:34:24 -0800
committerGravatar Craig Tiller <ctiller@ctiller.mtv.corp.google.com>2015-11-16 11:34:24 -0800
commit36da1380afab7c3f081e2008e521f0bd1d851358 (patch)
treebac946254e3f03dd74520ba1ae67e7461088c12e /src/core/support
parent892f2d372641967c5fe18c72b60393eca913c8f2 (diff)
parent118c0a0eec5cedfb4d610483c3e26dacf71bcd4a (diff)
Merge github.com:grpc/grpc into new_op
Diffstat (limited to 'src/core/support')
-rw-r--r--src/core/support/time_win32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/support/time_win32.c b/src/core/support/time_win32.c
index bc0586d069..623a8d9233 100644
--- a/src/core/support/time_win32.c
+++ b/src/core/support/time_win32.c
@@ -66,14 +66,12 @@ gpr_timespec gpr_now(gpr_clock_type clock) {
now_tv.tv_nsec = now_tb.millitm * 1000000;
break;
case GPR_CLOCK_MONOTONIC:
+ case GPR_CLOCK_PRECISE:
QueryPerformanceCounter(&timestamp);
now_dbl = (timestamp.QuadPart - g_start_time.QuadPart) * g_time_scale;
now_tv.tv_sec = (time_t)now_dbl;
now_tv.tv_nsec = (int)((now_dbl - (double)now_tv.tv_sec) * 1e9);
break;
- case GPR_CLOCK_PRECISE:
- gpr_precise_clock_now(&now_tv);
- break;
}
return now_tv;
}