9 lines
No EOL
312 B
Markdown
9 lines
No EOL
312 B
Markdown
|
|
|
|
## What are the **two methods** for measuring the state of an entity (e.g., "Device Busy")?
|
|
|
|
---
|
|
|
|
1. **Event Logging**: Record when it "goes busy" and "goes idle," then sum the total time.
|
|
2. **Sampling**: Use a **timer-based daemon** to periodically check the state and count how often it is busy vs idle.
|
|
|