diff options
Diffstat (limited to 'src/microspdy/internal.c')
-rw-r--r-- | src/microspdy/internal.c | 10 |
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 | ||
29 | time_t | 29 | unsigned long long |
30 | SPDYF_monotonic_time(void) | 30 | SPDYF_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 | } |