mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
Start using QElapsedTimer to avoid build warnings
This commit is contained in:
parent
d3fc5e7942
commit
74f9d4f038
@ -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" );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user