Use std::chrono::system_clock with 1/1000 second resolution

This commit is contained in:
Joakim Hove
2021-02-25 23:50:25 +01:00
parent 6f15765f53
commit 74ca0d12e0
7 changed files with 17 additions and 11 deletions
@@ -31,6 +31,7 @@
#include <opm/parser/eclipse/Parser/ParseContext.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp>
#include <opm/parser/eclipse/Units/Units.hpp>
#include <opm/common/utility/TimeService.hpp>
#include <opm/grid/GridHelpers.hpp>
@@ -57,7 +58,7 @@ struct Setup
, grid (es.getInputGrid())
, python( std::make_shared<Opm::Python>() )
, sched(deck, es, python)
, st(std::chrono::system_clock::from_time_t(sched.getStartTime()))
, st(Opm::TimeService::from_time_t(sched.getStartTime()))
{
initWellPerfData();
}