PaulStoffregen / Time

Time library for Arduino
http://playground.arduino.cc/code/time
1.24k stars 665 forks source link

Provide access to left-over milliseconds #90

Closed jamesmyatt closed 6 years ago

jamesmyatt commented 6 years ago

These are some minimal changes to provide access to the left-over millis from a call to now(). I know there's been lots of discussion about this, but I need it for my clock animations and I've included suitable warnings in the Readme.

I think this is better than the solutions in #11 and #45, since it will be consistent with the seconds output.

Datatype for the sysTimeMillis was selected to match prevMillis, which is uint32_t, rather than millis(), which is unsigned long.

jamesmyatt commented 6 years ago

Replaced with #93, which has a different "from" branch