hi,
i am working on some algorithm in which i need to play time simulation time and packet arrival time.
Time times = Simulator::Now();
This give us in nanoseconds and Time type id
and i want it to convert in unsigned integer.
i tried this
long int t = static_cast<long int> time(times);
uint32_t now = int(Simulator::Now());
it gives me error and i did understand that i cannot convert like this.
so is there any other way, in which i can get Simulator::Now() in integer type so that i can apply mathematics on it.
Thank you
Regards
V