TimeValue<AnimEvent*>::TimeValueIteratorPair_t pp = m_events.getNext (result);
m_currentTime = pp.first->first;
pp = m_events.getNext (result);
pp = m_events.getNext (result);pp = m_events.getNext (result);pp = m_events.getNext (result);
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
TimeValue<AnimEvent*>::TimeValueIteratorPair_t pp = m_events.getNext (result);
TimeValue<AnimEvent*>::TimeValueIteratorPair_t pp = m_events.getNext (result);
if (m_currentTime > 1)
{
int num_skip_events = 4;
for(int i = 0; i < num_skip_events; ++i)
pp = m_events.getNext (result);
}
where we process only 1 in 4 events. This could potentially speed it up.However please note, it might skip over important events like a moved node or a node which changed color etc.