Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix time unit for the _now method, and better calculation of the timer delay. #6

Merged
merged 2 commits into from Jul 3, 2013

Conversation

cparnot
Copy link
Contributor

@cparnot cparnot commented Jun 30, 2013

While not using directly MABGTimer, I ran into these issues in PARDispatchQueue. I cherry-picked the fixes to bring them back to MABGTimer. It would be nice to have a test target in MABGTimer. I'd be happy to contribute the tests that helped me check that the delay adjustment actually makes a difference.

…e method `_now`.

The unit is clearly documented by Apple in QA1398:
https://developer.apple.com/library/mac/#qa/qa1398/_index.html. I also
verified the unit "manually" by comparing elapsed times measured with
NSDate and with `_now`.
…en the call to `afterDelay:do:` and the execution of the block that actually schedules the timer.
mikeash added a commit that referenced this pull request Jul 3, 2013
Fix time unit for the `_now` method, and better calculation of the timer delay.
@mikeash mikeash merged commit 6e85137 into mikeash:master Jul 3, 2013
@mikeash
Copy link
Owner

mikeash commented Jul 3, 2013

Looks good, thank you. If you feel like starting a test target with your tests, that would be great too. Can figure out proper tests from there, no need for everything to be perfect up front.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants