- To get current simulation time:
ns3::Time mytime = Simulation::Now();
-
To get Time from human time unit
ns3::Time mytime = Seconds(1.0)
ORns3::Time mytime = MilliSeconds(1000)
ORns3::Time mytime = MicroSeconds(1000000)
ORns3::Time mytime = NanoSeconds(1000000000) - To convert the Time to human time unit:
double seconds = mytime.GetSeconds();
ORint64_t ms = mytime.GetMilliSeconds();
ORint64_t us = mytime.GetMicroSeconds();
ORint64_t ns = mytime.GetNanoSeconds();
It's just my notes, or not?
Showing posts with label simulator. Show all posts
Showing posts with label simulator. Show all posts
NS-3 simulation time
Subscribe to:
Posts (Atom)