-
Notifications
You must be signed in to change notification settings - Fork 670
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
milli seconds #45
Comments
... for an exact given second at time, second should be incremented by +1 before setTime(). @PaulStoffregen an alternative would be to enhance API by a additional method.
Pro: exact (no offset!) and everybody can find and use it. |
@KarlZeilhofer What happenes on a multitasking RTOS system, where we can miss the one moment when millis()%1000 = 0 ? |
to synchronize millis() with the second(), I used following workaround:
while(millis()%1000); // wait for milli seconds to be zero before setting new time. setTime(hour, minute, second, day, month, year);
hope this helps someone.
now you can print the time with milli seconds resolution.
The text was updated successfully, but these errors were encountered: