Re: [spice 3/7] server: Add time constants to go with spice_get_monotonic_time_ns()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

On Fri, Dec 11, 2015 at 12:21:52PM +0100, Francois Gouget wrote:
> diff --git a/server/utils.h b/server/utils.h
> index 3aa5be0..cf6b224 100644
> --- a/server/utils.h
> +++ b/server/utils.h
> @@ -50,13 +50,16 @@ static inline int test_bit(int index, uint32_t val)
>  
>  typedef int64_t red_time_t;
>  
> +#define NS_PER_SECOND      1000000000LL
> +#define NS_PER_MILLISECOND 1000000LL

Regarding the naming, maybe we should go with NSEC_PER_SEC and NSEC_PER_MILLISEC for
consistency with G_USEC_PER_SEC from glib?

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]