Programming Previous page   Next Page

Starting a Timer

To start a timer object, call the start function, specifying the timer object as the only argument. The start function starts a timer object running; the amount of time the timer runs is specified in seconds in the StartDelay property.

This example creates a timer object that displays a greeting after 5 seconds elapse.

  1. Create a timer object, specifying values for timer object properties.
  2. Start the timer object.
  3. Delete the timer object after you are finished using it.

Previous page  Starting and Stopping Timers Starting a Timer at a Specified Time Next page

© 1994-2005 The MathWorks, Inc.