Loading the code workspace…
Measure scheduling latency at task switch points.
Requirements:
Measurement Points:
Statistics to Collect:
Test Scenarios:
Scheduling latency is precisely what tools like `cyclictest` measure to certify Linux's PREEMPT_RT patches for real-time use in robotics and audio production, where a single 50-microsecond spike can cause an audible glitch or a missed control loop deadline. Using `CLOCK_MONOTONIC` instead of `CLOCK_REALTIME` here matters in practice too: NTP adjustments to wall-clock time have caused real latency-measurement bugs in production monitoring code.