2 Replies Latest reply on Jun 4, 2006 5:14 AM by a¿ex

    timer object

    Level 7
      how can i check how long has passed since the timer object is running?
      and can i pause it in the middle?
      thnaks in advance
      peleg


        • 1. Re: timer object
          a¿ex Level 1
          the time property of a timeout object is the absolute time in milliseconds, when the next timeout event is triggered.
          therefore the time until the next event is:
          timeUntilNext = timoutobject.time - the milliseconds

          to pause a timeoutobject you can set its period property to 0.
          to restart set its period to the value the next event shall be triggered in milliseconds
          • 2. Re: timer object
            a¿ex Level 1
            oh, your question was, when the last event happend.
            so:
            timeElapsedSinceLast = timeoutobject.period - timeoutobject.time + the milliseconds