[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 1/2] arch/time: Macro for sub-seconds part of nanoseconds
The ukdebug library needs to print the sub-seconds part of the time, so add macro for that. 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 d436a3b..16a8a2b 100644 --- a/include/uk/arch/time.h +++ b/include/uk/arch/time.h @@ -57,6 +57,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_subseconds(ns) ((ns) % 1000000000ULL) #define ukarch_time_sec_to_nsec(sec) ((sec) * 1000000000UL) #define ukarch_time_msec_to_nsec(msec) ((msec) * 1000000UL) -- 2.7.4 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |