fix profiler to use getTime()