Searched refs:_unit (Results 1 - 2 of 2) sorted by relevance

/gem5/src/systemc/ext/core/
H A Dsc_time.hh119 sc_time_tuple() : _value(), _unit(SC_SEC), _set(false) {}
125 sc_time_unit unit() const { return _unit; }
129 operator sc_time() const { return sc_time(to_double(), _unit); }
136 sc_time_unit _unit; member in class:sc_core::sc_time_tuple
/gem5/src/systemc/core/
H A Dsc_time.cc398 _value(), _unit(SC_SEC), _set(true)
407 while (_unit > 1 && (frequency % 1000 == 0)) {
408 _unit = (sc_time_unit)((int)_unit - 1);
415 _unit = (sc_time_unit)((int)_unit - 1);
426 while (_unit < SC_SEC && (_value % 1000) == 0) {
427 _unit = (sc_time_unit)((int)_unit + 1);
443 return sc_gem5::TimeUnitNames[_unit];
[all...]

Completed in 9 milliseconds