diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-26 08:19:32 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-26 08:19:32 +1000 |
| commit | f4fdffef1425b7a4293a90fb96219a58b2158019 (patch) | |
| tree | c23cc3904df927a7b9dfb1bbddcf022228f1351d /win32/ScintillaWin.cxx | |
| parent | 9172c913efbc014349c97740476d019690e57791 (diff) | |
| download | scintilla-mirror-f4fdffef1425b7a4293a90fb96219a58b2158019.tar.gz | |
Use <chrono> for platform-independent timing and remove ElapsedTime.
Also use #if for painting measurement as there are 7 sections of code to enable.
Diffstat (limited to 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
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 <map> #include <algorithm> #include <memory> +#include <chrono> #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; } |
