It's in "common/object.h"
#define NOW Scheduler::instance().clock()

Please don't ask questions when you can easily find the answer by your
self with little effort. It's a waste of everyone's time.

On 8/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> If you are curious to find "NOW" why don't you use find with grep??????
>
> P.
>
> Bie New wrote:
> > Thanks Pedro, But where can I find the definition of NOW. Would you tell me
> > in which files?
> >
> > :)
> >
> >
> > 2006/8/11, Pedro Fortuna <[EMAIL PROTECTED]>:
> >
> >> Actually, I think it is exactly the same thing, as Now is defined as a
> >> "Scheduler::instance().clock()". You may even see in some places the
> >> macro "CURRENT_TIME". They are all macros for
> >> "Scheduler::instance().clock()".
> >>
> >> Regards,
> >> Pedro Fortuna
> >> INESC Porto
> >>
> >> On 8/10/06, Bie New <[EMAIL PROTECTED]> wrote:
> >>
> >>> Dear all,
> >>>
> >>> I check some .CC files and find in some programs they use send_time =
> >>>
> >> NOW,
> >>
> >>> but the other use send_time =Scheduler::instance().clock().
> >>>
> >>> Does anyone know what's the different between NOW and
> >>> Scheduler::instance().clock() ?
> >>>
> >>> in Scheduler.h/.cc
> >>>
> >>> class Scheduler : public TclObject {
> >>> public:
> >>>             ......
> >>>             double clock() const {      // simulator virtual time
> >>>             return (clock_);
> >>>              }
> >>>              .........
> >>> protected:
> >>>              .........
> >>>              double clock_;
> >>>              ......
> >>> };
> >>>
> >>>
> >
> >
> >
> >
>
>


-- 
Cumprimentos,
Pedro Fortuna

Reply via email to