[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] How to delay a period for simulaton in C?



Date: Sun, 18 Jun 2000 16:40:03 -0800
From: Anaking <[email protected]>
To: Tan Su Wei <[email protected]>
Cc: [email protected]
Subject: Re: [ns] How to delay a period for simulaton in C?

Hi,

I intend to just stop a period and resume at this point. But using timer will
invoke expire and then timeout(), the process seems not to continue at this
function. This is why i didn't use timer.

How to do what I want?

Thanks

On Thu, 15 Jun 2000, you wrote:
> Hi,
>     Try to use the timer in ns c++ code. [chapter 10 in ns-manual]
> 
>         -> derive your new timer class from TimerHandler and define your expire
> function (a virtual function in TimerHandler) which will be called when your
> timer expired.
> 
> regards
> Tan Su Wei
> Anaking wrote:
> 
> > Hi, all,
> > I would like to stop a interval and continue in the function (not to invoke an
> > expire function). Can sleep do it? But i think it should be scheuler time.
> > How to do it?
> >
> > Thanks.