-#include "../time/utils.h"
+#include <msp/time/utils.h>
#include "profilingscope.h"
using namespace std;
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