ClusterDuck-Protocol / ClusterDuck-Protocol

Firmware for an ad-hoc mesh network of Internet-of-Things devices based on LoRa (Long Range radio) that can be deployed quickly and at low cost.
https://clusterduckprotocol.org
Apache License 2.0
367 stars 155 forks source link

Track device uptime #241

Open nfeuer opened 3 years ago

nfeuer commented 3 years ago

Describe the feature We want to be able to keep track of how busy each device is during different amounts of traffic. This will help us understand which new processes are taking too much time.

Datapoints to track

Expected implementation Add this data to "health" quacks

DhruvaG2000 commented 3 years ago

uptime (millis())

This can be easily done by creating a static time_t start_time and then every loop it subtracts current time from start_time to get the uptime.

loopcount

Please can you elaborate on this? I do not understand the purpose of counting the number of times loop() executes as it could result in a very large number which may exceed bounds.

faradaym commented 2 months ago

Stale issue