aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-12-01 02:51:28 +0000
committernyamatongwe <unknown>2001-12-01 02:51:28 +0000
commit595695518ea338230264913d8b1a9f78b5f6e791 (patch)
treee128e18d6d4491dff5e64469e03e9fc5969e09eb
parentb4a70d8b28a3ef35bc0c38cbc3db5f10dedb0003 (diff)
downloadscintilla-mirror-595695518ea338230264913d8b1a9f78b5f6e791.tar.gz
Removed old timeing code in favour of ElapsedTime class.
-rw-r--r--win32/ScintillaWin.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 9254a842b..e47c21f79 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -360,12 +360,7 @@ static int KeyTranslate(int keyIn) {
}
LRESULT ScintillaWin::WndPaint(unsigned long wParam) {
- //CElapsed ce; ce.Begin();
- //LARGE_INTEGER perfStart;
- //LARGE_INTEGER perfEnd;
- //LARGE_INTEGER performanceFreq;
- //QueryPerformanceFrequency(&performanceFreq);
- //QueryPerformanceCounter(&perfStart);
+ //ElapsedTime et;
// Redirect assertions to debug output and save current state
bool assertsPopup = Platform::ShowAssertionPopUps(false);
@@ -408,14 +403,7 @@ LRESULT ScintillaWin::WndPaint(unsigned long wParam) {
// Restore debug output state
Platform::ShowAssertionPopUps(assertsPopup);
- //QueryPerformanceCounter(&perfEnd);
- //__int64 start = perfStart.QuadPart;
- //__int64 end = perfEnd.QuadPart;
- //__int64 freq = performanceFreq.QuadPart;
- //__int64 dur = end - start;
- //double per = double(dur) / double(freq);
- //Platform::DebugPrintf("Paint took %5.03g\n", per);
- //Platform::DebugPrintf("Paint took %g\n", ce.End());
+ //Platform::DebugPrintf("Paint took %g\n", et.Duration());
return 0l;
}