Open jamesmyatt opened 6 years ago
any plan to merge it?
This is something I'm looking for too, so please merge this! :)
This would also meet my requirements.
Thank you very much for this patch, merged manually, works like a charm!
any chance to get this PR into the main release?
any news / plans here?
@cyberman54 , I think it's unlikely that this will get merged
For anyone watching, it turns out the functions in the ESP8266 and ESP32 frameworks have functionality like this, e.g. gettimeofday
.
👍 I want it!
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. Furthermore, you have to enable access to the functions via a
#define
in your sketch, which I think is a pretty good compromise.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.