better timing with high resolution clock