-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
4 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters