[ns] How to get the current simulation time in ns2? Or how to know the remaining time of a timer?

2009-01-05 Thread matt Wood
Dear all, I want to know the current time in C++ programs. Is there a function to do this? Or, How can I get the remaining time of a running timer? In OpNet the function simtime( ) can be used to get the current time. But I can't find the corresponding one in the NS2. Thank you in advance. Be

Re: [ns] How to get the current simulation time in ns2? Or how to know the remaining time of a timer?

2009-01-05 Thread Mubashir Rehmani
Dear Matt Wood To know the current time in C++ files of ns2, you can use these commands #define CURRENT_TIMEScheduler::instance().clock() cout< > > Dear all, >I want to know the current time in C++ programs. Is there a > function to do this? Or, How can I get the remaining time of a run