From f4fdffef1425b7a4293a90fb96219a58b2158019 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 26 Apr 2018 08:19:32 +1000 Subject: Use for platform-independent timing and remove ElapsedTime. Also use #if for painting measurement as there are 7 sections of code to enable. --- win32/ScintillaWin.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'win32/ScintillaWin.cxx') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 480c82e64..c1c54b5d1 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -21,6 +21,7 @@ #include #include #include +#include #undef _WIN32_WINNT #define _WIN32_WINNT 0x0500 @@ -80,6 +81,7 @@ #include "MarginView.h" #include "EditView.h" #include "Editor.h" +#include "ElapsedPeriod.h" #include "AutoComplete.h" #include "ScintillaBase.h" @@ -813,7 +815,7 @@ void ScintillaWin::AddCharUTF16(wchar_t const *wcs, unsigned int wclen) { } sptr_t ScintillaWin::WndPaint(uptr_t wParam) { - //ElapsedTime et; + //ElapsedPeriod ep; // Redirect assertions to debug output and save current state const bool assertsPopup = Platform::ShowAssertionPopUps(false); @@ -878,7 +880,7 @@ sptr_t ScintillaWin::WndPaint(uptr_t wParam) { // Restore debug output state Platform::ShowAssertionPopUps(assertsPopup); - //Platform::DebugPrintf("Paint took %g\n", et.Duration()); + //Platform::DebugPrintf("Paint took %g\n", ep.Duration()); return 0l; } -- cgit v1.2.3