-
Notifications
You must be signed in to change notification settings - Fork 381
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
Give access to _lastUpdate would let users deal with better accuracy requirements #23
Comments
I'd like to see a getEpochMillis() that just removes the "divide by 1000" from the current getEpochTime(). This would require support for the "unsigned long long" type. unsigned long long getEpochMillis(); |
My pull request #22 includes this, feel free to grab my branch or apply that patch. |
If one is interested in milliseconds, most of the time he only cares about the interval between 2 periods. In that case, my fork may help. It helps you obtain milliseconds from |
I completed the decimal part of NTP, removed the communication latency, and added a new function get_millis() to get the ms of this second (which is a float). You can see my fork or Pull Request #102. |
I'm working on an application that is time sensitive, at least in a relative way.
I don't need exact microsecond precision of the returned time, but I need a more or less reliable way to determine at the millisecond where I'm standing compared to the epoch.
Simply giving access to _lastUpdate does the job I think, as I can now get a string representing a ms epoch that way :
Now I don't know what the best design is for this library :
getMillisecondString()
getLastUpdate()
like I didms
epoch as a number...The text was updated successfully, but these errors were encountered: