9 #include <dpsim/Event.h>
11 using namespace DPsim;
14 void EventQueue::addEvent(Event::Ptr e) { mEvents.push(e); }
16 void EventQueue::handleEvents(Real currentTime) {
19 while (!mEvents.empty()) {
22 if (currentTime > e->mTime || (e->mTime - currentTime) < 100e-9) {
24 std::cout << std::scientific << currentTime <<
": Handle event time"