mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
get current date time.
This commit is contained in:
parent
63f244a36d
commit
6097a14b0e
@ -108,6 +108,11 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
boost::posix_time::ptime SimulatorTimer::currentDateTime() const
|
||||||
|
{
|
||||||
|
return startDateTime() + boost::posix_time::seconds( (int) simulationTimeElapsed());
|
||||||
|
}
|
||||||
|
|
||||||
/// Total time.
|
/// Total time.
|
||||||
double SimulatorTimer::totalTime() const
|
double SimulatorTimer::totalTime() const
|
||||||
{
|
{
|
||||||
|
@ -85,6 +85,9 @@ namespace Opm
|
|||||||
/// Return start date of simulation
|
/// Return start date of simulation
|
||||||
boost::posix_time::ptime startDateTime() const;
|
boost::posix_time::ptime startDateTime() const;
|
||||||
|
|
||||||
|
/// Return current date.
|
||||||
|
boost::posix_time::ptime currentDateTime() const;
|
||||||
|
|
||||||
/// Set total time.
|
/// Set total time.
|
||||||
/// This is primarily intended for multi-epoch schedules,
|
/// This is primarily intended for multi-epoch schedules,
|
||||||
/// where a timer for a given epoch does not have
|
/// where a timer for a given epoch does not have
|
||||||
|
Loading…
Reference in New Issue
Block a user