fix profiler to use cpu time