-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce MilliTimer functions (#131)
This provides an API so that we can move away from microsecond-based timers. The StatsD spec suggests using milliseconds, and they're a great fit for the typical RPCs we are measuring. Most RPCs take about 1-1000ms, which makes it easy for a human to spot and tell the difference vs. microseconds which would be 1000us-1000000us. We don't need that amount of fidelity. Consumers can continue using NewTimer, using microseconds, which might be appropriate for other use cases like timing functions or tight in-memory queues. But most new callers should move toward MilliTimer functions.
- Loading branch information
Showing
2 changed files
with
76 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