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

Add literal operators for time types

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None
    • Service Arch

    Description

      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

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: