High-precision timing using CPU timestamps