X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ftimely%2Ftime_stamp.h;h=0b2dd00025394f20192bb4ba832234c526194481;hb=ee7596ce4d372d632f1d1555de9afd30b622bf29;hp=691660d852ec9162c857bd51bea4b021d2144479;hpb=567f3ce3668cc050498387b5e221b7ea4bf1badd;p=feisty_meow.git diff --git a/nucleus/library/timely/time_stamp.h b/nucleus/library/timely/time_stamp.h index 691660d8..0b2dd000 100644 --- a/nucleus/library/timely/time_stamp.h +++ b/nucleus/library/timely/time_stamp.h @@ -37,6 +37,8 @@ namespace timely { class time_stamp : public virtual basis::orderable { public: + DEFINE_CLASS_NAME("time_stamp"); + typedef double time_representation; //!< the representation of time for this universe, measured in milliseconds. @@ -90,7 +92,7 @@ public: // helper functions for using the OS's time support. - static timeval fill_timeval_ms(int milliseconds); + static void fill_timeval_ms(timeval &time_point, int milliseconds); //!< returns a timeval system object that represents the "milliseconds". /*!< if "milliseconds" is zero, then the returned timeval will represent zero time passing (rather than infinite duration as some