get current date time.

This commit is contained in:
Liu Ming
2016-06-21 11:25:05 +08:00
parent 63f244a36d
commit 6097a14b0e
2 changed files with 8 additions and 0 deletions

View File

@@ -108,6 +108,11 @@ namespace Opm
}
boost::posix_time::ptime SimulatorTimer::currentDateTime() const
{
return startDateTime() + boost::posix_time::seconds( (int) simulationTimeElapsed());
}
/// Total time.
double SimulatorTimer::totalTime() const
{