[Spice-devel] [spice 6/7] server: Add time constants to go with spice_get_monotonic_time_ms()

Christophe Fergeau cfergeau at redhat.com
Fri Dec 11 05:24:21 PST 2015


On Fri, Dec 11, 2015 at 12:22:31PM +0100, Francois Gouget wrote:
> diff --git a/server/utils.h b/server/utils.h
> index cf6b224..755133b 100644
> --- a/server/utils.h
> +++ b/server/utils.h
> @@ -62,6 +62,8 @@ static inline red_time_t spice_get_monotonic_time_ns(void)
>      return NS_PER_SECOND * time.tv_sec + time.tv_nsec;
>  }
>  
> +#define MS_PER_SECOND 1000

Same comment about naming as in the other patch, looks good to me
otherwise.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20151211/bb00ee3c/attachment-0001.sig>


More information about the Spice-devel mailing list