aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/time_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/support/time_win32.c')
-rw-r--r--src/core/support/time_win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/support/time_win32.c b/src/core/support/time_win32.c
index 7ccaaa248d..2bed0f6a9c 100644
--- a/src/core/support/time_win32.c
+++ b/src/core/support/time_win32.c
@@ -62,15 +62,15 @@ gpr_timespec gpr_now(gpr_clock_type clock) {
switch (clock) {
case GPR_CLOCK_REALTIME:
_ftime_s(&now_tb);
- now_tv.tv_sec = (gpr_int64)now_tb.time;
+ now_tv.tv_sec = (int64_t)now_tb.time;
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 = (gpr_int64)now_dbl;
- now_tv.tv_nsec = (gpr_int32)((now_dbl - (double)now_tv.tv_sec) * 1e9);
+ now_tv.tv_sec = (int64_t)now_dbl;
+ now_tv.tv_nsec = (int32_t)((now_dbl - (double)now_tv.tv_sec) * 1e9);
break;
}
return now_tv;