void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(1000); // this speeds up the simulation
//uint32_t sec = millis() / 1000ul;
//int timeHours = (sec / 3600ul) % 24;
//int timeMins = (sec % 3600ul) / 60ul;
//int timeSecs = (sec % 3600ul) % 60ul;
int timeSecs = ((millis() / 1000ul) % 3600ul) % 60ul;
Serial.println(timeSecs);
}