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 /gtk | |
| 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 'gtk')
| -rw-r--r-- | gtk/PlatGTK.cxx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index da04bae61..f9ee02bfc 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1914,13 +1914,6 @@ void Menu::Show(Point pt, Window &w) { #endif } -ElapsedTime::ElapsedTime() { - GTimeVal curTime; - g_get_current_time(&curTime); - bigBit = curTime.tv_sec; - littleBit = curTime.tv_usec; -} - class DynamicLibraryImpl : public DynamicLibrary { protected: GModule* m; @@ -1957,21 +1950,6 @@ DynamicLibrary *DynamicLibrary::Load(const char *modulePath) { return static_cast<DynamicLibrary *>( new DynamicLibraryImpl(modulePath) ); } -double ElapsedTime::Duration(bool reset) { - GTimeVal curTime; - g_get_current_time(&curTime); - long endBigBit = curTime.tv_sec; - long endLittleBit = curTime.tv_usec; - double result = 1000000.0 * (endBigBit - bigBit); - result += endLittleBit - littleBit; - result /= 1000000.0; - if (reset) { - bigBit = endBigBit; - littleBit = endLittleBit; - } - return result; -} - ColourDesired Platform::Chrome() { return ColourDesired(0xe0, 0xe0, 0xe0); } |
