mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Refactor logging of elapsed time
This commit is contained in:
1 parent
3727a12634
commit
f9f9b6b07b
7 files changed
+29
-44
No files matched your search
@@ -45,22 +45,22 @@ TEST( OpmSummaryTests, DISABLED_PerformanceReadOfRestartFilename )
|
||||
|
||||
const int N = 100;
|
||||
|
||||
RiaLogging::resetTimer( "Starting opm-common" );
|
||||
auto startTime = RiaLogging::currentTime();
|
||||
for ( int i = 0; i < N; i++ )
|
||||
{
|
||||
std::vector<QString> warnings;
|
||||
auto restartFileInfos = RifEclipseSummaryTools::getRestartFileNamesOpm( filePath, warnings );
|
||||
}
|
||||
RiaLogging::logTimeElapsed( "Completed opm-common" );
|
||||
RiaLogging::logElapsedTime( "Completed opm-common", startTime );
|
||||
|
||||
RiaLogging::resetTimer( "Starting resdata" );
|
||||
auto startTime2 = RiaLogging::currentTime();
|
||||
for ( int i = 0; i < N; i++ )
|
||||
{
|
||||
std::vector<QString> warnings;
|
||||
auto restartFileInfos = RifEclipseSummaryTools::getRestartFileNames( filePath, warnings );
|
||||
}
|
||||
|
||||
RiaLogging::logTimeElapsed( "Completed resdata" );
|
||||
RiaLogging::logElapsedTime( "Completed resdata", startTime2 );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user