X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fdebug%2Fprofilingscope.cpp;h=edf1aa3de975ed0361333d448723fe24ce9e07bb;hp=f92749b214f588357c38baa22f53960973aa9fdd;hb=ce8b99f8d48b7783fd97f3959198f9c54cebec72;hpb=dff78b5a8a1d947eb3391dd919abfa04a48d589c diff --git a/source/debug/profilingscope.cpp b/source/debug/profilingscope.cpp index f92749b..edf1aa3 100644 --- a/source/debug/profilingscope.cpp +++ b/source/debug/profilingscope.cpp @@ -15,7 +15,7 @@ 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;