MCPcopy Create free account
hub / github.com/BruceDevices/firmware / formatTimeDecimal

Function formatTimeDecimal

src/core/utils.cpp:274–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274String formatTimeDecimal(uint32_t totalMillis) {
275 uint16_t minutes = totalMillis / 60000;
276 float seconds = (totalMillis % 60000) / 1000.0;
277
278 char buffer[16];
279 snprintf(buffer, sizeof(buffer), "%02d:%06.3f", minutes, seconds);
280 return String(buffer);
281}
282
283void printMemoryUsage(const char *msg) {
284 Serial.printf(

Callers 1

printDecimalTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected