aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/Stopwatch.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2014-08-22 16:58:23 +0200
committerjackpoz <giacomopoz@gmail.com>2014-08-22 21:00:56 +0200
commit5e8277e923c5545a15bae7c740ab6afaa597a59f (patch)
tree4cf5212c080588a7e868ee60134fc7fff51e400a /dep/g3dlite/source/Stopwatch.cpp
parenta63aa858dcb400eafb97eed1f590e34c27d934a4 (diff)
Core/Dependencies: Update G3D to v9.0 r4036
Diffstat (limited to 'dep/g3dlite/source/Stopwatch.cpp')
-rw-r--r--dep/g3dlite/source/Stopwatch.cpp15
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;
}
}
-