fix measure_time