How to apply 2 timers on a Node..???
Dear all,
I am interested in applying two timers(T1 & T2) on a node. 1. As per the functionality of my protocol, the timer 'T1' is only called once at the start of the simulation. 2. The timer 'T2' is called again and again during the simulation. However, till now, I am unable to implement both timers T1 & T2 together. In this context, my questions are: Kindly is there any possible way of implementing both timers T1 & T2 together...? Kindly is there any way of deactivating the timer T1 when I realize that its task is over that shall help me to activate T2 later on...? Also, I am using NS-2.31 with MACNG based implementation for my simulation. Thank you... |
wouldn't you be better off starting your first timer then whatever time between its stopping and starting the other timer devise a method to all it as soon as your start timer has quit. something like this?
Code:
#include <iostream> controlling the same thing at the same time. |
All times are GMT -5. The time now is 03:27 AM. |