]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/profilingscope.cpp
Use the get_item function in Profiler::get_scope
[libs/core.git] / source / debug / profilingscope.cpp
index edf1aa3de975ed0361333d448723fe24ce9e07bb..bf3363de2fdce5d42d8f0e78655d35b3febea5c8 100644 (file)
@@ -1,4 +1,4 @@
-#include "../time/utils.h"
+#include <msp/time/utils.h>
 #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