2 #ifndef SYDEVS_SYSTEMS_DISCRETE_EVENT_TIME_H_
3 #define SYDEVS_SYSTEMS_DISCRETE_EVENT_TIME_H_
int64 t_index() const
Return the index associated with the current point in simulated time.
Definition: discrete_event_time.h:107
A data structure which represents progress through a simulation, encapsulating both simulated time an...
Definition: discrete_event_time.h:36
void advance()
Advance the counter without changing simulated time point.
Definition: discrete_event_time.h:140
const time_point & t() const
Return the current point in simulated time.
Definition: discrete_event_time.h:101
constexpr auto _s
Definition: units.h:128
constexpr bool finite() const
Returns true if the quantity value is finite.
Definition: quantity.h:395
int64 c() const
Return the counter value of associated with the current point in simulated time.
Definition: discrete_event_time.h:113
A data structure which represents a point in time as an arbitrary-precision multiple of its shortest ...
Definition: time_point.h:84
virtual ~discrete_event_time()=default
Destructor.
discrete_event_time()
Constructs a discrete_event_time object starting at time zero and a counter value of zero...
Definition: discrete_event_time.h:77
time_point & advance(duration rhs)
Advances the time_point object by the specified duration.
Definition: time_point.cpp:75
discrete_event_time & operator=(const discrete_event_time &)=default
Copy assignment.