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

Users Messing With the System Clock #7

Open
victorstewart opened this issue Aug 2, 2017 · 2 comments
Open

Users Messing With the System Clock #7

victorstewart opened this issue Aug 2, 2017 · 2 comments

Comments

@victorstewart
Copy link

victorstewart commented Aug 2, 2017

Hey, I found by way here (and by the way, thanks for MHSNTP!) researching / planning a solution to user interference with the system clock.

In that stead, I think instead of using [NSDate date] to keep track of relative time....

(for example...
- (void)locked_query:(MHSNTPManagerEntry *)entry
entry.lastRequestDate = [NSDate date];
)

that it would be better to use this method of calculating system uptime

@DarkDust
Copy link
Owner

DarkDust commented Aug 2, 2017

I have to think about how to integrate that concept but it's a good idea!

@victorstewart
Copy link
Author

Cool! At the very least, there's a need to subscribe to system clock / time zone change notifications. Because if one of those happens between pings, it'll break (I didn't look into how... but I assume so since there's an assumption the baseline doesn't change).

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

No branches or pull requests

2 participants