I started writing some code in Python that would draw three arcs to represent the current time (hours, minutes and seconds) and present them on the Pico explorer board’s display. I got it working but it ran too slow so I’ve ported the code to C++ which runs about 100x faster.
The only thing I can’t figure out how to do is to get the actual clock time. I understand that this will be the time from power-on and that is ok. In Python I do:
but I’m having trouble figuring the equivalent in C++. I have figured out some C++ code but it just always returns 23:59.59. I’m hoping someone has had to do this and could put me out of my misery please.