Start using QElapsedTimer to avoid build warnings

This commit is contained in:
Gaute Lindkvist 2020-09-07 16:06:44 +02:00
parent d3fc5e7942
commit 74f9d4f038

View File

@ -47,6 +47,7 @@
#include <QDebug> #include <QDebug>
#include <QDesktopServices> #include <QDesktopServices>
#include <QDir> #include <QDir>
#include <QElapsedTimer>
#include <QMdiSubWindow> #include <QMdiSubWindow>
#include <QSettings> #include <QSettings>
#include <QStatusBar> #include <QStatusBar>
@ -70,7 +71,7 @@ const QString commandFileFilter = "commandfile-*";
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void logInfoTextWithTimeInSeconds( const QTime& time, const QString& msg ) void logInfoTextWithTimeInSeconds( const QElapsedTimer& time, const QString& msg )
{ {
double timeRunning = time.elapsed() / 1000.0; double timeRunning = time.elapsed() / 1000.0;
@ -164,7 +165,7 @@ void RiaRegressionTestRunner::runRegressionTest()
RiaLogging::info( QTime::currentTime().toString() + ": Launching regression tests" ); RiaLogging::info( QTime::currentTime().toString() + ": Launching regression tests" );
RiaLogging::info( "--------------------------------------------------" ); RiaLogging::info( "--------------------------------------------------" );
QTime timeStamp; QElapsedTimer timeStamp;
timeStamp.start(); timeStamp.start();
logInfoTextWithTimeInSeconds( timeStamp, "Starting regression tests\n" ); logInfoTextWithTimeInSeconds( timeStamp, "Starting regression tests\n" );