Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-110059

Use 'std::chrono first' approach for timer methods (like QObject::startTimer, QTimer, QDeadlineTimer etc.)

    XMLWordPrintable

Details

    • Epic
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Core: Other
    • None
    • 'std::chrono first' approach
    • 6754795e5 (dev), 2a495c259 (dev), 6f9ace568 (dev), e426a4e3f (dev), 0d29a406f (dev), 5cea5fc80 (dev), a0e3da262 (dev), c9f4c0d45 (dev), be3dd0115 (dev), 72d660843 (dev), 4f618bde0 (dev)

    Description

      As discussed here (The discussion on this topic is still open, and this task may be rejected, so far, this task is only a placeholder to track the progress of the work )

      Change the API of all methods representing time from int/qint64 to std::chrono::milliseconds, this allows:
      This makes the range issues a SEP. std::chrono::millisecond isn't required to support a full 64-bit range in count(), so we'll likely have a problem with supporting the full 64-bit range at the OS level ourselves, esp. when we have to convert back, e.g. because we're calling std::condition_variable API. By using chrono-first, we move any overflows into the user's code and our functions can be noexcept. ~ mmutz

       

      Follow the porting guide from qsizetype epic.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-110059
          # Subject Branch Project Status CR V

          Activity

            People

              cnn Qt Core & Network
              kokujawa Konrad Kujawa (Inactive)
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: