aboutsummaryrefslogtreecommitdiff
path: root/src/microspdy/internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microspdy/internal.c')
-rw-r--r--src/microspdy/internal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/microspdy/internal.c b/src/microspdy/internal.c
index 458bcb2f..6bcfdbf9 100644
--- a/src/microspdy/internal.c
+++ b/src/microspdy/internal.c
@@ -26,13 +26,13 @@
26#include "structures.h" 26#include "structures.h"
27 27
28 28
29time_t 29unsigned long long
30SPDYF_monotonic_time(void) 30SPDYF_monotonic_time(void)
31{ 31{
32#ifdef HAVE_CLOCK_GETTIME 32#ifdef HAVE_CLOCK_GETTIME
33 struct timespec ts; 33 struct timespec ts;
34 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) 34 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)
35 return ts.tv_sec; 35 return ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
36#endif 36#endif
37 return time(NULL); 37 return time(NULL) * 1000;
38} 38}