Test and validate the behavior of a timer driver. Takes a number of absolute timer cycle samples of a periodic timer then calculates statistical mean, variance, stddev along with total drift over the entire test time. Ensures standard deviation and drift are within a given configurable bound. Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
385 B
385 B
Test a timer implementations variance and long term drift
Records and calculates statistical values against a timer validating that.
- Timer variance and standard deviation is below defined acceptable values.
- Periodic timers do not drift in either direction from expected total time.
Timers are meant to be precise and accurate. This test validates an implementation is both.