Programming |
Starting a Timer at a Specified Time
To start a timer object and specify when you want the timer to fire as a date and time, rather than as the number of seconds to elapse, use the startat
function.
The startat
function starts a timer object running and lets you specify the date, hour, minute, and second when you want to the timer to execute. You specify the time as a MATLAB serial date number or as a specially formatted date text string. See the startat
function reference page for details.
This example creates a timer object that displays a message after an hour has elapsed. The startat
function starts the timer object running and calculates the value of the StartDelay
property based on the time you specify.
Starting a Timer | Stopping Timer Objects |
© 1994-2005 The MathWorks, Inc.