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

Re: [Minios-devel] [UNIKRAFT PATCH v3 2/4] arch/time: Add macro for the subsecond part of nanoseconds



Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>

On 17.03.2018 18:04, Dafna Hirschfeld wrote:
Add macro that retrieve the subsecond part of the
given nanoseconds.

Signed-off-by: Dafna Hirschfeld <dafna3@xxxxxxxxx>
---
  include/uk/arch/time.h | 1 +
  1 file changed, 1 insertion(+)

diff --git a/include/uk/arch/time.h b/include/uk/arch/time.h
index c66f380..262fd3b 100644
--- a/include/uk/arch/time.h
+++ b/include/uk/arch/time.h
@@ -60,6 +60,7 @@ typedef __s64 __snsec;
  #define ukarch_time_nsec_to_sec(ns)      ((ns) / 1000000000ULL)
  #define ukarch_time_nsec_to_msec(ns)     ((ns) / 1000000ULL)
  #define ukarch_time_nsec_to_usec(ns)     ((ns) / 1000UL)
+#define ukarch_time_subsec(ns)           ((ns) % 1000000000ULL)
#define ukarch_time_sec_to_nsec(sec) ((sec) * 1000000000UL)
  #define ukarch_time_msec_to_nsec(msec)   ((msec) * 1000000UL)


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.