X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Fprofilingscope.cpp;h=bf3363de2fdce5d42d8f0e78655d35b3febea5c8;hb=f4cf84ddec17f4fec0d9ba7e6814a8af8ff50395;hp=ffb093a4b3c90a56f7ce9e3b3f9befb405bcbe92;hpb=cfc8e0b7b15ea505bd6a6a9599cbc5ce1e316963;p=libs%2Fcore.git diff --git a/source/debug/profilingscope.cpp b/source/debug/profilingscope.cpp index ffb093a..bf3363d 100644 --- a/source/debug/profilingscope.cpp +++ b/source/debug/profilingscope.cpp @@ -1,11 +1,4 @@ -/* $Id$ - -This file is part of libmspcore -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include "../time/utils.h" +#include #include "profilingscope.h" using namespace std; @@ -22,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