[SERVER-61054] div and mod operations between Durations Created: 27/Oct/21  Updated: 05/Dec/22

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

Type: Improvement Priority: Minor - P4
Reporter: Billy Donahue Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: sa-remove-fv-backlog-22
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-71206 support for duration division via ope... Closed
Assigned Teams:
Service Arch
Participants:

 Description   

https://github.com/10gen/mongo/pull/1392/files/88d1b281512c356e1428f460719e2a2dd3e54a18..95777dccd0151f966e30df97e4deb675fec1beee#r737854418

std::chrono allows division between durations, yielding a count.

https://en.cppreference.com/w/cpp/chrono/duration/operator_arith4

We're missing this and it's useful arithmetic. We shouldn't have to use durationCount to do it.


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