[SERVER-71206] support for duration division via operator/(D1,D2) Created: 09/Nov/22  Updated: 04/Feb/23  Resolved: 04/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Backlog - Service Architecture
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-61054 div and mod operations between Durations Backlog
Related
related to SERVER-71731 Replace Duration with std::chrono::du... Backlog
Assigned Teams:
Service Arch
Participants:

 Description   

Two instances of different std::chrono::duration can be divided to yield a ratio.
Without this capability, users must use error-prone workarounds and sacrifice typesafety.



 Comments   
Comment by Billy Donahue [ 09/Nov/22 ]

Or expose more of the native std::chrono::duration API.
Maintaining our own mongo::Duration type is likely unnecessary at this point.

Generated at Thu Feb 08 06:18:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.