From a3682265255f5749926a8452b90a831bc7dd1809 Mon Sep 17 00:00:00 2001 From: Ali Karbassi Date: Sun, 12 Jul 2020 07:50:24 -0500 Subject: [PATCH] Timer skips seconds Fixes #90 --- Timer.xcodeproj/project.pbxproj | 4 ++-- Timer/MVClockView.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Timer.xcodeproj/project.pbxproj b/Timer.xcodeproj/project.pbxproj index 836389f..f34142f 100644 --- a/Timer.xcodeproj/project.pbxproj +++ b/Timer.xcodeproj/project.pbxproj @@ -301,7 +301,7 @@ INFOPLIST_FILE = Timer/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.11; - MARKETING_VERSION = 1.5.4; + MARKETING_VERSION = 1.5.5; PRODUCT_BUNDLE_IDENTIFIER = com.michaelvillar.Timer; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; @@ -319,7 +319,7 @@ INFOPLIST_FILE = Timer/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.11; - MARKETING_VERSION = 1.5.4; + MARKETING_VERSION = 1.5.5; PRODUCT_BUNDLE_IDENTIFIER = com.michaelvillar.Timer; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; diff --git a/Timer/MVClockView.swift b/Timer/MVClockView.swift index 5c078cc..b76fd10 100644 --- a/Timer/MVClockView.swift +++ b/Timer/MVClockView.swift @@ -440,7 +440,7 @@ class MVClockView: NSControl { // Improves the system's ability to optimize for increased power savings and responsiveness // A general rule, set the tolerance to at least 10% of the interval, for a repeating timer. - currentTimeTimer?.tolerance = 0.03 + currentTimeTimer?.tolerance = 0.45 } @objc func tick() { @@ -471,7 +471,7 @@ class MVClockView: NSControl { // Improves the system's ability to optimize for increased power savings and responsiveness // A general rule, set the tolerance to at least 10% of the interval, for a repeating timer. - currentTimeTimer?.tolerance = 0.5 + currentTimeTimer?.tolerance = 0.45 } private func stopClockTimer() {