Changed Profiler API average time calculation method