time measurement fix