Fix wrong value for 'noon' in tst_bench_qdatetime

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

Pick-to: 6.9 6.8 6.5
Change-Id: I2eb3abcab18cd87d51ae70b5fbaeac71a8fcd0a8
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
David Faure 2025-01-02 19:11:31 +01:00
parent d74079873b
commit 0e2656f937

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);