We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ae6010 commit 5fe81dbCopy full SHA for 5fe81db
1 file changed
src/inet/clock/model/SettableClock.cc
@@ -108,6 +108,7 @@ void SettableClock::setClockTime(clocktime_t newClockTime, ppm oscillatorCompens
108
this->oscillatorCompensation = oscillatorCompensation;
109
ASSERT(newClockTime == getClockTime());
110
clocktime_t clockDelta = newClockTime - oldClockTime;
111
+ std::sort(events.begin(), events.end(), [] (auto &a, auto &b) { return compareClockEvents(b, a); });
112
for (auto event : events) {
113
if (event->getRelative())
114
// NOTE: the simulation time of event execution is not affected
0 commit comments