39a40
> #include "systemc/ext/core/sc_time.hh"
47c48
< timeUnitValue(1.0), timeUnitUnit(::sc_core::SC_PS), _traceDeltas(false)
---
> timeUnitValue(0.0), timeUnitUnit(::sc_core::SC_PS), _traceDeltas(false)
79c80,87
< timeUnitTicks = ::sc_core::sc_time(timeUnitValue, timeUnitUnit).value();
---
> ::sc_core::sc_time time;
> if (timeUnitValue == 0.0) {
> // The time scale was never set. Use the global time resolution.
> time = ::sc_core::sc_get_time_resolution();
> } else {
> time = ::sc_core::sc_time(timeUnitValue, timeUnitUnit);
> }
> timeUnitTicks = time.value();