1 #ifndef TIME_H_INCLUDED_
2 #define TIME_H_INCLUDED_
28 Time(
unsigned long long time_units,
int delta_count);
35 Time(
unsigned long long time_units,
int delta_count,
bool infinite);
bool infinite_
This flag is set to describe an infinite amount of time.
Definition: time.h:61
bool operator>=(const Time &ohs)
Definition: time.cpp:82
Time()
This constructor initializes the time values with (0,0)
Definition: time.cpp:5
static long long convert_si_magnitude(std::string magnitude)
Definition: time.cpp:136
bool operator==(const Time &ohs)
Definition: time.cpp:88
unsigned long long time_units_
Definition: time.h:44
bool one_delta_cycle_ahead(const Time &ohs)
The function checks if the difference between this and the given time stamp is exactly one delta cycl...
Definition: time.cpp:118
bool operator>(const Time &ohs)
Definition: time.cpp:53
int delta_count_
Definition: time.h:43
This class represents timing in discrete event simulation.
Definition: time.h:14
bool operator<(const Time &ohs)
Definition: time.cpp:30
Time & operator+=(const Time &ohs)
Definition: time.cpp:111
Time operator+(const Time &ohs)
Definition: time.cpp:101
std::ostream & operator<<(std::ostream &os, const risc::sg::Time &time)
Definition: time.cpp:125
bool operator!=(const Time &ohs)
Definition: time.cpp:95
bool operator<=(const Time &ohs)
Definition: time.cpp:76