18 virtual sc_core::sc_time time_to_sync()
override
20 sc_core::sc_time quantum = tlm_utils::tlm_quantumkeeper::get_global_quantum();
21 sc_core::sc_time next_quantum_boundary = sc_core::sc_time_stamp() + quantum;
22 sc_core::sc_time now = get_current_time();
23 if (next_quantum_boundary >= now) {
24 return next_quantum_boundary - now;
26 return sc_core::SC_ZERO_TIME;
31 virtual bool need_sync()
override {
return time_to_sync() == sc_core::SC_ZERO_TIME; }