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
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