diff options
author | Craig Tiller <ctiller@google.com> | 2015-07-06 11:21:24 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-07-06 11:21:24 -0700 |
commit | 87d2cac9813512bd06414013e79e9442701abde8 (patch) | |
tree | 10a959ca0c0f68d75ec70bda9658fcf83c6e9978 /src | |
parent | 63a4e227130a9d3517118f0d62fdce3b2c70a4ae (diff) |
clang-format changed files
Diffstat (limited to 'src')
-rw-r--r-- | src/core/support/time_win32.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/support/time_win32.c b/src/core/support/time_win32.c index b5ce13c9d5..ad27a62cc8 100644 --- a/src/core/support/time_win32.c +++ b/src/core/support/time_win32.c @@ -58,12 +58,12 @@ gpr_timespec gpr_now(gpr_clock_type clock) { double now_dbl; switch (clock) { case GPR_CLOCK_REALTIME: - _ftime_s(&now_tb); - now_tv.tv_sec = now_tb.time; - now_tv.tv_nsec = now_tb.millitm * 1000000; - break; - case GPR_CLOCK_MONOTONIC: - QueryPerformanceCounter(×tamp); + _ftime_s(&now_tb); + now_tv.tv_sec = now_tb.time; + now_tv.tv_nsec = now_tb.millitm * 1000000; + break; + case GPR_CLOCK_MONOTONIC: + QueryPerformanceCounter(×tamp); 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); |