X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Fprofilingscope.cpp;h=bf3363de2fdce5d42d8f0e78655d35b3febea5c8;hb=f4cf84ddec17f4fec0d9ba7e6814a8af8ff50395;hp=f92749b214f588357c38baa22f53960973aa9fdd;hpb=e7638f74d3e4869020a19dfa1cc700d52373f01c;p=libs%2Fcore.git diff --git a/source/debug/profilingscope.cpp b/source/debug/profilingscope.cpp index f92749b..bf3363d 100644 --- a/source/debug/profilingscope.cpp +++ b/source/debug/profilingscope.cpp @@ -1,4 +1,4 @@ -#include "../time/utils.h" +#include #include "profilingscope.h" using namespace std; @@ -15,10 +15,10 @@ ProfilingScope::ProfilingScope(Profiler &p, const string &n): ProfilingScope::~ProfilingScope() { - const Time::TimeDelta dt=start_t-Time::now(); + const Time::TimeDelta dt = Time::now()-start_t; if(parent) { - parent->child_t+=dt; + parent->child_t += dt; profiler.record(name, parent->name, dt, child_t); } else