Fix time profiling