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

Add literal operators for time types

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Service Arch

      The new C++ <chrono> library allows writing time constants in the natural way such as 5ms. However, because we define our own internal duration types, we cannot use those and still have to write Milliseconds(5), etc. This is harder to read and write. Current usages are:

      Unit Occurrences
      Days 0
      Hours 9
      Minutes 13
      Seconds 824
      Milliseconds 846
      Microseconds 278
      Nanoseconds 0

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: