Fix wrong value for 'noon' in tst_bench_qdatetime

12 hours corresponds to 43,200 seconds, not 43,200 milliseconds.
Amends commit 3febcd6286

Pick-to: 6.5
Change-Id: I2eb3abcab18cd87d51ae70b5fbaeac71a8fcd0a8
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit 0e2656f9371f92db3bb95ee5ba52c44a91e5ce68)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 2a121a9506145943b0ce5296d673afb46199ecea)
Reviewed-by: David Faure <david.faure@kdab.com>
bb10
David Faure 2025-01-02 19:11:31 +01:00 committed by Qt Cherry-pick Bot
parent 431d86c8a8
commit 1467bdb4ea
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ void tst_QDateTime::create()
{
QFETCH(const qint64, startJd);
QFETCH(const qint64, stopJd);
const QTime noon = QTime::fromMSecsSinceStartOfDay(43200);
const QTime noon = QTime::fromMSecsSinceStartOfDay(43200 * 1000);
QBENCHMARK {
for (int jd = startJd; jd < stopJd; ++jd) {
QDateTime test(QDate::fromJulianDay(jd), noon);