The Timer and Watchdog objects both facilitate scheduling functions to execute a specified virtual time in the future. More...
Modules | |
TimerImpl Implementation | |
Files | |
file | timer-impl.h |
ns3::TimerImpl declaration and implementation. | |
file | timer.cc |
ns3::Timer implementation. | |
file | timer.h |
ns3::Timer class declaration. | |
file | watchdog-test-suite.cc |
Watchdog test suite. | |
file | watchdog.cc |
ns3::Watchdog timer class implementation. | |
file | watchdog.h |
ns3::Watchdog timer class declaration. | |
Classes | |
class | ns3::Timer |
A simple Timer class. More... | |
class | ns3::TimerImpl |
The timer implementation underlying Timer and Watchdog. More... | |
class | ns3::Watchdog |
A very simple watchdog operating in virtual time. More... | |
The Timer and Watchdog objects both facilitate scheduling functions to execute a specified virtual time in the future.
A Watchdog timer cannot be paused or cancelled once it has been started, however it can be lengthened (delayed). A Watchdog takes no action when it is destroyed.
A Timer can be suspended, resumed, cancelled and queried for time left, but it can't be extended (except by suspending and resuming). In addition, it can be configured to take different actions when the Timer is destroyed.