Motivation: I have a metrics backend where I need to store timer values in microseconds. The "preferred display unit" models this exactly, but it seems to have (inadvertently?) omitted the possibility to express microseconds. Note that among the timer "report" methods there is already a microseconds option. Changes: * change TimeUnit from enum to struct with static members to support non-api breaking future evolution * add scaleFromNanoseconds to TimeUnit to make it easy to compute the values without switching over * add tests Co-authored-by: Chris Burrows <cburrows@gmail.com> |
||
|---|---|---|
| .. | ||
| CoreMetrics | ||
| Metrics | ||