|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Runtime state for adaptive sleep. More...
#include <lib/util/time.h>
Data Fields | |
| adaptive_sleep_config_t | config |
| Configuration (copied, not referenced) | |
| double | current_speed_multiplier |
| Current speed state (1.0 = baseline, >1.0 = faster) | |
| uint64_t | last_sleep_ns |
| Last calculated sleep time (for debugging) | |
Runtime state for adaptive sleep.
Tracks current speed multiplier and last calculated sleep time. Should be initialized once and updated each iteration.
| adaptive_sleep_config_t adaptive_sleep_state_t::config |
Configuration (copied, not referenced)
Definition at line 311 of file time.h.
Referenced by adaptive_sleep_calculate(), and adaptive_sleep_init().
| double adaptive_sleep_state_t::current_speed_multiplier |
Current speed state (1.0 = baseline, >1.0 = faster)
Definition at line 312 of file time.h.
Referenced by adaptive_sleep_calculate(), and adaptive_sleep_init().
| uint64_t adaptive_sleep_state_t::last_sleep_ns |
Last calculated sleep time (for debugging)
Definition at line 313 of file time.h.
Referenced by adaptive_sleep_calculate(), and adaptive_sleep_init().