div and mod operations between Durations

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: