diff options
author | Francois Gouget <fgouget@codeweavers.com> | 2015-12-11 12:22:03 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-12-11 12:43:26 +0000 |
commit | f7613250c57de92f407f682858ed2529c38c7dd6 (patch) | |
tree | 69f2e8416c13a1ffcf2f5f2486c45a163970acc5 /server/reds.c | |
parent | 65b60250d0c0818eed30c59e70120ca40d72f33e (diff) |
server: Add spice_get_monotonic_time_ms()
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/reds.c')
-rw-r--r-- | server/reds.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/reds.c b/server/reds.c index 75a7d95c..31362ef1 100644 --- a/server/reds.c +++ b/server/reds.c @@ -29,7 +29,6 @@ #include <arpa/inet.h> #include <netdb.h> #include <limits.h> -#include <time.h> #include <pthread.h> #include <sys/mman.h> #include <fcntl.h> @@ -69,6 +68,7 @@ #include "smartcard.h" #endif #include "reds-stream.h" +#include "utils.h" #include "reds-private.h" @@ -2882,9 +2882,7 @@ static void migrate_timeout(void *opaque) uint32_t reds_get_mm_time(void) { - struct timespec time_space; - clock_gettime(CLOCK_MONOTONIC, &time_space); - return time_space.tv_sec * 1000 + time_space.tv_nsec / 1000 / 1000; + return spice_get_monotonic_time_ms(); } void reds_enable_mm_time(void) |