diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-08-22 16:58:23 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-08-22 21:00:56 +0200 |
commit | 5e8277e923c5545a15bae7c740ab6afaa597a59f (patch) | |
tree | 4cf5212c080588a7e868ee60134fc7fff51e400a /dep/g3dlite/source/Stopwatch.cpp | |
parent | a63aa858dcb400eafb97eed1f590e34c27d934a4 (diff) |
Core/Dependencies: Update G3D to v9.0 r4036
Diffstat (limited to 'dep/g3dlite/source/Stopwatch.cpp')
-rw-r--r-- | dep/g3dlite/source/Stopwatch.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/dep/g3dlite/source/Stopwatch.cpp b/dep/g3dlite/source/Stopwatch.cpp index 9b785d50295..713835ea7ab 100644 --- a/dep/g3dlite/source/Stopwatch.cpp +++ b/dep/g3dlite/source/Stopwatch.cpp @@ -105,15 +105,16 @@ void Stopwatch::reset() { void Stopwatch::after(const std::string& s) { RealTime now = System::time(); - debugPrintf("%s: %10s - %8fs since %s (%fs since start)\n", - myName.c_str(), - s.c_str(), - now - prevTime, - prevMark.c_str(), - now - startTime); + if (m_enabled) { + debugPrintf("%s: %10s - %8fs since %s (%fs since start)\n", + myName.c_str(), + s.c_str(), + now - prevTime, + prevMark.c_str(), + now - startTime); + } prevTime = now; prevMark = s; } } - |