47class sc_event_or_list;
48class sc_event_and_list;
70#define SC_TIME_DT sc_dt::uint64
140 double to_double()
const;
146 static sc_time from_seconds(
double );
161 sc_time& operator *= (
double );
162 sc_time& operator /= (
double );
175 void print( ::std::ostream& os = std::cout )
const;
197 void init( value_type v );
201 : m_value(), m_unit(
SC_SEC ), m_offset(1) {}
212 double to_double()
const;
238: m_value( t.m_value )
243 : m_value(), m_unit(
SC_SEC ), m_offset(1)
251 : m_value(), m_unit(
SC_SEC ), m_offset(1)
316 return ( m_value == t.m_value );
323 return ( m_value != t.m_value );
330 return ( m_value < t.m_value );
337 return ( m_value <= t.m_value );
344 return ( m_value > t.m_value );
351 return ( m_value >= t.m_value );
361 m_value += t.m_value;
369 m_value -= t.m_value;
413 m_value %= t.m_value;
auto operator>(const sc_vector_iter< T1, Pol1 > &a, const sc_vector_iter< T2, Pol2 > &b) -> decltype((b< a))
const sc_time operator+(const sc_time &, const sc_time &)
class SC_API sc_simcontext
bool operator!=(const sc_process_handle &left, const sc_process_handle &right)
auto operator<=(const sc_vector_iter< T1, Pol1 > &a, const sc_vector_iter< T2, Pol2 > &b) -> decltype(!(b< a))
inline::std::ostream & operator<<(::std::ostream &os, const sc_fifo< T > &a)
SC_API void wait(int, sc_simcontext *)
bool operator==(const sc_process_handle &left, const sc_process_handle &right)
const sc_time operator%(const sc_time &t1, const sc_time &t2)
SC_API void sc_set_time_resolution(double, sc_time_unit)
SC_API void next_trigger(sc_simcontext *)
SC_API sc_time sc_get_default_time_unit()
const sc_time operator-(const sc_time &, const sc_time &)
bool operator<(const sc_process_handle &left, const sc_process_handle &right)
SC_API const sc_time SC_ZERO_TIME
auto operator>=(const sc_vector_iter< T1, Pol1 > &a, const sc_vector_iter< T2, Pol2 > &b) -> decltype(!(a< b))
const sc_time operator*(const sc_time &, double)
SC_API void sc_set_default_time_unit(double, sc_time_unit)
const sc_time operator/(const sc_time &, double)
SC_API sc_time sc_get_time_resolution()
class SC_API sc_time_tuple
double uint64_to_double(uint64 a)
SC_API std::string to_string(sc_enc)
sc_core::sc_signal_in_if< T > & value(const T &val)
bool operator!=(const sc_time &) const
static sc_time from_seconds(double)
void print(::std::ostream &os=std::cout) const
sc_time & operator-=(const sc_time &)
bool operator>=(const sc_time &) const
bool operator==(const sc_time &) const
bool operator>(const sc_time &) const
friend SC_API void next_trigger(const sc_time &, const sc_event_and_list &, sc_simcontext *)
sc_time(double, bool scale)
friend SC_API void wait(const sc_time &, const sc_event &, sc_simcontext *)
friend SC_API void next_trigger(const sc_time &, const sc_event_or_list &, sc_simcontext *)
static sc_time from_string(std::string_view strv)
sc_time(double, sc_time_unit)
friend SC_API void next_trigger(const sc_time &, const sc_event &, sc_simcontext *)
sc_time & operator%=(const sc_time &)
sc_time & operator+=(const sc_time &)
friend SC_API void wait(const sc_time &, sc_simcontext *)
double to_seconds() const
const std::string to_string() const
sc_time & operator=(const sc_time &)
double to_default_time_units() const
friend SC_API void wait(const sc_time &, const sc_event_and_list &, sc_simcontext *)
sc_time(std::string_view strv)
sc_time(value_type, bool scale)
sc_time & operator/=(double)
static sc_time from_value(value_type)
bool operator<(const sc_time &) const
bool operator<=(const sc_time &) const
sc_time & operator*=(double)
const char * unit_symbol() const
std::string to_string() const
sc_time_unit unit() const
bool time_resolution_specified
bool time_resolution_fixed
bool default_time_unit_specified
sc_time::value_type default_time_unit