Go to the documentation of this file.
130 std::chrono::nanoseconds cur_time(std::chrono::high_resolution_clock::now().time_since_epoch());
131 std::chrono::nanoseconds start_time(
start_.time_since_epoch());
134 return (cur_time.count() - start_time.count())/1000000000.0;
160 start_ = std::chrono::high_resolution_clock::now();
void copy_members(const CEPlanet &other)
Copy data members from another CEPlanet object.
virtual double MJD() const
Get the current modified Julian date.
CERunningDate()
Default constructor.
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.
CERunningDate & operator=(const CERunningDate &other)
Copy assignment operator.
static double JD2Gregorian(const double jd)
Julian date -> Gregorian calendar date conversion method.
double timer_speed_factor_
Variable that can be used to speed up, slow down, or reverse the rate of time.
void init_members(void)
Initialize data members.
CEDate & operator=(const CEDate &other)
Copy assignent operator.
std::chrono::high_resolution_clock::time_point start_
Variable to hold the starting time.
virtual double JD() const
Get the Julian date represented by this object.
virtual double JD() const
Get the current Julian date.
static double JD2MJD(double jd)
Julian date -> modified Julian date conversion method.