1 #ifndef TIME_STAMP_CLASS
2 #define TIME_STAMP_CLASS
23 class rollover_record;
83 if (!cast)
return false;
84 return c_stamp < cast->c_stamp;
89 if (!cast)
return false;
90 return c_stamp == cast->c_stamp;
109 static rollover_record &rollover_rover();
Provides a dynamically resizable ASCII character string.
Base class for object that can tell itself apart from other instances.
A base for objects that can be alphabetically (lexicographically) ordered.
Represents a point in time relative to the operating system startup time.
virtual bool equal_to(const basis::equalizable &that) const
static basis::astring notarize(bool add_space=true)
a useful method for getting a textual version of the time "right now".
basis::astring text_form(stamp_display_style style=STAMP_RELATIVE) const
returns a simple textual representation of the time_stamp.
void reset()
sets the stamp time back to now.
static double rolling_uptime()
give the OS uptime in a more durable form that handles rollovers.
time_stamp()
creates a time_stamp containing the current time.
double time_representation
the representation of time for this universe, measured in milliseconds.
DEFINE_CLASS_NAME("time_stamp")
static void fill_timeval_ms(timeval &time_point, int milliseconds)
returns a timeval system object that represents the "milliseconds".
time_representation value() const
returns the time_stamp in terms of the lower level type.
virtual bool less_than(const basis::orderable &that) const
Constants and objects used throughout HOOPLE.