C++ Advanced · exercise 07
Latency instrumentation
Bucket loop latencies into a histogram and report deadline misses.
C++ Advanced lesson 07Guided steps
- 1.Place each sample in the bucket for its 500 microsecond band, capped at the last bucket.
- 2.Print each bucket count.
- 3.Print how many samples exceeded the 1000 microsecond deadline.
Your code
Your code is saved in this browser after every run and restored next time.