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

Bad performance of QDateTime::toMSecsSinceEpoch() in Qt 6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.8.2
    • Core: Date/Time
    • Linux/Wayland

    Description

      QDateTime::toMSecsSinceEpoch() costs at least ten times  of computation resource in Qt 6 series than Qt 5 series.

       

      It's performance is worse when compared to standard library implemention like

      std::chrono::duration_cast<std::chrono::milliseconds>(time_point.time_since_epoch()).count();

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Eddy Edward Welbourne
            yanzhikai Zhikai Yan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes