3 ms·
clock_gettime_nsec_np() seems interesting in that it returns a u64. I proposed something similar for Linux circa 2012. The patch got lost in some other unrelat
by adsharma 2y ago
clock_gettime_nsec_np() seems interesting in that it returns a u64.
I proposed something similar for Linux circa 2012. The patch got lost in some other unrelated discussion and I didn't pursue it.
struct timeval is a holdover from the 32 bit era. When everyone is using 64 bit machines, we should be able to get this data by reading one u64 from a shared page.
- adsharma 2y agohttps://lkml.org/lkml/2011/12/12/438 https://lkml.org/lkml/2011/12/12/438