Re: [Spice-devel] RFC: Time functions in Spice

2015-12-09 Thread Frediano Ziglio
> > On Sun, 2015-12-06 at 21:00 +0100, Francois Gouget wrote: > > So the Spice server has a red_get_monotonic_time() function which, as is > > the tradition, has a very similar name to a regular Glib function, > > g_get_monotonic_time(), except that one returns the time in nanoseconds > > and the

Re: [Spice-devel] RFC: Time functions in Spice

2015-12-07 Thread Francois Gouget
On Mon, 7 Dec 2015, Marc-André Lureau wrote: [...] > > So I propose to rename these functions to spice_nanosecond_time() and > > spice_millisecond_time() and to define both in utils.h. Would that be > > ok? > > Why not use g_get_monotonic_time() everywhere? I don't think spice needs > nanosecond a

Re: [Spice-devel] RFC: Time functions in Spice

2015-12-07 Thread Marc-André Lureau
Hi - Original Message - > > So the Spice server has a red_get_monotonic_time() function which, as is > the tradition, has a very similar name to a regular Glib function, > g_get_monotonic_time(), except that one returns the time in nanoseconds > and the other in microseconds and nothing i

Re: [Spice-devel] RFC: Time functions in Spice

2015-12-07 Thread Jonathon Jongsma
On Sun, 2015-12-06 at 21:00 +0100, Francois Gouget wrote: > So the Spice server has a red_get_monotonic_time() function which, as is > the tradition, has a very similar name to a regular Glib function, > g_get_monotonic_time(), except that one returns the time in nanoseconds > and the other in m

[Spice-devel] RFC: Time functions in Spice

2015-12-06 Thread Francois Gouget
So the Spice server has a red_get_monotonic_time() function which, as is the tradition, has a very similar name to a regular Glib function, g_get_monotonic_time(), except that one returns the time in nanoseconds and the other in microseconds and nothing in the name warns the developer of that