[RFC v3 2/2] selftest/cpuidle: Add support for cpuidle latency measurement