Skip to content

Commit

Permalink
Timer skips seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
karbassi committed Jul 12, 2020
1 parent d06658d commit a368226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Timer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand All @@ -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 = "";
Expand Down
4 changes: 2 additions & 2 deletions Timer/MVClockView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit a368226

Please # to comment.