Sorry for the basic question but wondering what the simplest way to change the display of milliseconds to minutes or hours would be.
Currently using the following to track hardware uptime
int value = millis() / 1000;
That displays milliseconds but its a crazy number and hard to digest visually.
id prefer to see uptime in hours & minutes if possible
How would i go about converting the milliseconds to minutes ? or hours? or both?
int value = (millis() / 1000) / 60 / 60 ; // icantzmath
int value = millis() / 1000 / 60 / 60 ; // icantzmath
i know in python i can use regular math to achieve results but not sure about c++
i tried searching but was unable to find.