swarm-support
[Top][All Lists]
Advanced

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

Re: help: how to access simulation time value


From: Roger M. Burkhart
Subject: Re: help: how to access simulation time value
Date: Tue, 27 Jan 1998 08:14:24 -0600

> Is there a pre-packaged routine to access the current time value for a
> simulation?  If not, how can it be done otherwise?
>
> Thanks,
>
> Geoff Schultz

There's a macro, getCurrentTime(), which returns the current running time
of a simulation from within any action running within the schedule.

If an activity running the schedule is stopped, and you're inquiring
its time from the actions within that schedule, you can get the
current time the schedule's activity object using the message
[aScheduleActivity getCurrentTime].  The macro uses this message
internally from the current running activity.  You'd typically need
to do this yourself only if you're running multiple simulations in
parallel and wanting to keep them coordinated or check their status.

Roger


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]