Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint32_t totalPackets = DynamicCast<PacketSink>(apps.Get(0))->GetTotalRx();
- double throughput = (totalPackets-numPackets)*8/(1000000.0);
- Vector pos = GetPosition(node);; //position of mobile node
- std::cout << pos.x << "\t" << throughput << std::endl;
- Simulator::Schedule(Seconds (1.0), &ThroughputPerSecond, apps , totalPackets , node);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement