[uptime] Use scheduler millis_64() for rollover-safe uptime tracking (#14170)

This commit is contained in:
J. Nick Koston
2026-02-21 03:08:49 +00:00
committed by GitHub
parent 8589f80d8f
commit abe37c9841
8 changed files with 24 additions and 61 deletions
+2
View File
@@ -675,6 +675,8 @@ bool HOT Scheduler::cancel_item_locked_(Component *component, NameType name_type
return total_cancelled > 0;
}
uint64_t Scheduler::millis_64() { return this->millis_64_(millis()); }
uint64_t Scheduler::millis_64_(uint32_t now) {
// THREAD SAFETY NOTE:
// This function has three implementations, based on the precompiler flags