X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Fprofilingscope.cpp;h=bf3363de2fdce5d42d8f0e78655d35b3febea5c8;hb=f4cf84ddec17f4fec0d9ba7e6814a8af8ff50395;hp=edf1aa3de975ed0361333d448723fe24ce9e07bb;hpb=ce8b99f8d48b7783fd97f3959198f9c54cebec72;p=libs%2Fcore.git diff --git a/source/debug/profilingscope.cpp b/source/debug/profilingscope.cpp index edf1aa3..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=Time::now()-start_t; + 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