[SERVER-45857] Add Timer class to ClockSource Created: 30/Jan/20 Updated: 29/Oct/23 Resolved: 06/Feb/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.4 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Benjamin Caimano (Inactive) | Assignee: | Benjamin Caimano (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Service Arch 2020-02-10 |
| Participants: |
| Description |
|
We have a common pattern where we we call ClockSource::now() multiple times to record a duration. However, our Timer class works with TickSources instead. I think we should add a similar class nested within ClockSource. This would serve a use case where we need to capture timing for log lines or errors instead of metrics. |
| Comments |
| Comment by Githook User [ 06/Feb/20 ] |
|
Author: {'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}Message: This commit adds the mongo::ClockSource::StopWatch class. |