Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61054

div and mod operations between Durations

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch

      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:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: