[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: SERVER-45857 Add time measurement class to ClockSource

This commit adds the mongo::ClockSource::StopWatch class.
Branch: master
https://github.com/mongodb/mongo/commit/9ecd5bd7db601b007f9854516730de53d1ccd991

Generated at Thu Feb 08 05:09:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.