summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <nemeth@collabora.com>2014-11-25 19:21:42 +0100
committerLászló Németh <nemeth@collabora.com>2014-11-26 07:50:54 +0100
commitef436bfd8032d326a00d6273940880d5d5623629 (patch)
tree676207555484baaaf402c995beb93991713d76b0
parent68536fb8f37b732de8598465f98ee48fc2ab2416 (diff)
vcldemo profiling: avoid unnecessary calls
Change-Id: Ic7ecfe85826d9148d14fce14e9de3f80a11eb775
-rw-r--r--vcl/workben/vcldemo.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 706daf5e6d7c..282e61c73d89 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -935,7 +935,7 @@ public:
DemoRenderer::clearRects(rDev, aRegions);
for (size_t i = 0; i < maRenderers.size(); i++)
{
- mnStartTime = getTimeNow();
+ if (!bVDev) mnStartTime = getTimeNow();
maRenderers[i]->RenderRegion(rDev, aRegions[i], aCtx);
if (!bVDev) addTime(i, getTimeNow() - mnStartTime);
}