mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 22:02:17 +01:00
fix: skip formatting request timings that won't be logged
timeRequest built both 112-byte descriptions (with a String copy of the URL) on async_tcp for every request, and logElapsed threw them away for anything under 100ms. Check worthLogging() first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9988a2bec8
commit
6a3769406f
4 changed files with 28 additions and 3 deletions
|
|
@ -16,6 +16,7 @@ typedef uint8_t byte;
|
|||
|
||||
// Fixed so anything formatted from it is deterministic.
|
||||
inline unsigned long millis() { return 0; }
|
||||
inline unsigned long micros() { return 0; }
|
||||
inline bool getLocalTime(struct tm *info, uint32_t ms = 5000) {
|
||||
(void)ms;
|
||||
time_t now = time(nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue