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

New Timer




hi there,

    i tried the example in the NS documentation to create a new timer as
follows :

    class mytimer : public TimerHandler {

          .....

    public:
	virtual double expire(Event *e)

    protected:
           MyAgent *a_ ;
 
    };
  
  and also define a 
 
   double mytimer::expire(Event *e)
   {

    ....
   }

   i would like to know how to set the interval variable so that when the
interval reaches 0, it activates the expire function.

   Thanks.

rgds,
mien