Go to the documentation of this file.
41 std::this_thread::sleep_for(
naptime_);
59 std::cout <<
"\nTesting CERunningDate:\n";
85 test_double(test1.
JD(),
base_.
JD(), __func__, __LINE__);
106 double new_speed(100.0);
108 test_double(test1.
GetTimerSpeed(), new_speed, __func__, __LINE__);
113 std::this_thread::sleep_for(
naptime_);
124 int main(
int argc,
char** argv)
virtual bool runtests()
Run tests.
virtual bool test_construct(void)
Test constructors.
virtual double MJD() const
Get the current modified Julian date.
test_CERunningDate()
Default constructor.
void ResetTime(void)
Method for resetting the 'start' variable.
virtual bool test_timer_manip(void)
Test manipulating the timer.
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.
int main(int argc, char **argv)
Main method that actually runs the tests.
virtual ~test_CERunningDate()
Destructor.
double ScaledRunTime(void) const
Return the scaled ellapsed time since this object was created.
virtual double GetTimerSpeed(void) const
Get the rate at which the timer is progressing.
std::chrono::milliseconds naptime_
virtual void SetTimerSpeed(const double &scale=1.0)
Set the rate at which the timer progresses.
virtual double MJD() const
Get the Modified Julian date represented by this object.
virtual double Gregorian() const
Get the Gregorian calendar date formatted as a double.
virtual double JD() const
Get the Julian date represented by this object.
virtual double JD() const
Get the current Julian date.