X-Git-Url: https://git.cworth.org/git?p=apitrace;a=blobdiff_plain;f=common%2Ftrace_profiler.cpp;h=14edd35477aaac782a9e437a08b0030ccaa58dd3;hp=773e7cc4096876090087b6c14c3753089e674eda;hb=3fd020297fd1ff94d80d27df5a871e73267f8b9b;hpb=cd3f69ef1a354e16f2bffdf29206f41f7dff95b7 diff --git a/common/trace_profiler.cpp b/common/trace_profiler.cpp index 773e7cc..14edd35 100644 --- a/common/trace_profiler.cpp +++ b/common/trace_profiler.cpp @@ -120,9 +120,7 @@ void Profiler::addCall(unsigned no, } if (cpuTimes && cpuStart) { - double cpuTimeScale = 1.0E9 / os::timeFrequency; - cpuStart = (cpuStart - baseCpuTime) * cpuTimeScale; - cpuDuration = cpuDuration * cpuTimeScale; + cpuStart = cpuStart - baseCpuTime; if (cpuDuration < minCpuTime) { return;