4 static inline u64
get_clock(void)
8 asm volatile("stck %0" : "=Q" (r
) : : "cc");
12 static inline u64
get_time_ms(void)
14 /* Bit 51 is incremented each microsecond */
15 return (get_clock() >> 12) / 1000;
18 static inline u64
get_time_seconds(void)
20 return get_time_ms() / 1000;