diff options
author | nyamatongwe <unknown> | 2000-06-21 02:59:25 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-06-21 02:59:25 +0000 |
commit | e7729d12b8676528ab5bfecf58d586ac1fbafeb1 (patch) | |
tree | dce2610a6c578021e13c36d3e4e2c9f4a2eb6dfc /win32/ScintillaWin.cxx | |
parent | 37147e61367b4d73deae7dbd315c498cdd7c6198 (diff) | |
download | scintilla-mirror-e7729d12b8676528ab5bfecf58d586ac1fbafeb1.tar.gz |
Added indentation guide API.
View whitespace has setting to only see outside indentation.
Indentation guide highlight.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 829b973fa..25af77f99 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -288,7 +288,12 @@ LRESULT ScintillaWin::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { break; case WM_PAINT: { - //CElapsed ce; ce.Begin(); + //CElapsed ce; ce.Begin(); + LARGE_INTEGER perfStart; + LARGE_INTEGER perfEnd; + LARGE_INTEGER performanceFreq; + QueryPerformanceFrequency(&performanceFreq); + QueryPerformanceCounter(&perfStart); paintState = painting; PAINTSTRUCT ps; BeginPaint(wMain.GetID(), &ps); @@ -311,7 +316,14 @@ LRESULT ScintillaWin::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { FullPaint(); } paintState = notPainting; - //Platform::DebugPrintf("Paint took %g\n", ce.End()); + 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()); } break; |