time: use timespec instead of timeval.
It's a superset of struct timeval. It's also a bit trickier, since we need -lrt on Linux to use clock_gettime(), and also we can't just cram the time into a u64 for multiply and divide.
Showing
Please register or sign in to comment