fix time measurements