diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-22 16:43:48 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-05-03 14:44:12 +0200 |
commit | 68c6014ff0a384cde8fb158456804525e9ac653d (patch) | |
tree | 9717a8c76d7769b0ceab3c74ce409314dabe96ca /server | |
parent | 54f028a01d691c4b13c46a77c2ad33b03419f8b1 (diff) | |
download | spice-68c6014ff0a384cde8fb158456804525e9ac653d.tar.gz spice-68c6014ff0a384cde8fb158456804525e9ac653d.tar.xz spice-68c6014ff0a384cde8fb158456804525e9ac653d.zip |
move get_time_stamp to main_channel.c
There is only one user of get_time_stamp from spice_common.h so
it's not really useful to keep it there.
Diffstat (limited to 'server')
-rw-r--r-- | server/main_channel.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/main_channel.c b/server/main_channel.c index e0fa1e43..1a6a89c4 100644 --- a/server/main_channel.c +++ b/server/main_channel.c @@ -489,6 +489,13 @@ void main_channel_push_notify(Channel *channel, uint8_t *mess, const int mess_le red_channel_pipe_add_push(&main_chan->base, &item->base); } +static uint64_t get_time_stamp(void) +{ + struct timespec time_space; + clock_gettime(CLOCK_MONOTONIC, &time_space); + return time_space.tv_sec * 1000 * 1000 * 1000 + time_space.tv_nsec; +} + static void main_channel_marshall_notify(SpiceMarshaller *m, NotifyPipeItem *item) { SpiceMsgNotify notify; |