aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-26 08:19:32 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-26 08:19:32 +1000
commitf4fdffef1425b7a4293a90fb96219a58b2158019 (patch)
treec23cc3904df927a7b9dfb1bbddcf022228f1351d /cocoa
parent9172c913efbc014349c97740476d019690e57791 (diff)
downloadscintilla-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 'cocoa')
-rw-r--r--cocoa/PlatCocoa.mm28
1 files changed, 0 insertions, 28 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 763778342..fce8fad3e 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -1781,34 +1781,6 @@ void Menu::Show(Point, Window &) {
// takes care to show it properly.
}
-//----------------- ElapsedTime --------------------------------------------------------------------
-
-// ElapsedTime is used for precise performance measurements during development
-// and not for anything a user sees.
-
-ElapsedTime::ElapsedTime() {
- struct timeval curTime;
- gettimeofday(&curTime, NULL);
-
- bigBit = curTime.tv_sec;
- littleBit = curTime.tv_usec;
-}
-
-double ElapsedTime::Duration(bool reset) {
- struct timeval curTime;
- gettimeofday(&curTime, NULL);
- 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;
-}
-
//----------------- Platform -----------------------------------------------------------------------
ColourDesired Platform::Chrome() {