Go to the documentation of this file.
22 #ifndef CERunningDate_h
23 #define CERunningDate_h
40 virtual double JD()
const;
41 virtual double MJD()
const;
45 virtual double RunTime(
void)
const;
59 std::chrono::high_resolution_clock::time_point
start_;
84 start_ = std::chrono::high_resolution_clock::now();
virtual double MJD() const
Get the current modified Julian date.
CERunningDate()
Default constructor.
void ResetTime(void)
Method for resetting the 'start' variable.
void free_members(void)
Deallocate data members.
virtual double Gregorian() const
Get the current Gregorian calendar date formatted as YYYYMMDD.D.
virtual double RunTime(void) const
Method for getting the number of seconds since this object was created or reset.
void init_members(void)
Initialize data members.
virtual ~CERunningDate()
Destructor.
double ScaledRunTime(void) const
Return the scaled ellapsed time since this object was created.
void copy_members(const CERunningDate &other)
Copy data members from another object.
virtual double GetTimerSpeed(void) const
Get the rate at which the timer is progressing.
CERunningDate & operator=(const CERunningDate &other)
Copy assignment operator.
virtual void SetTimerSpeed(const double &scale=1.0)
Set the rate at which the timer progresses.
double timer_speed_factor_
Variable that can be used to speed up, slow down, or reverse the rate of time.
std::chrono::high_resolution_clock::time_point start_
Variable to hold the starting time.
virtual double JD() const
Get the current Julian date.