Maptitude GISDK Help |
Sets up a timer that executes a macro at fixed-time intervals.
CreateTimer(string timer_name, integer interval, string macro_name)
Argument |
Contents |
timer_name |
A name that identifies the timer |
interval |
The time, in milliseconds, between executions of the macro |
macro_name |
The macro to be run at each indicated interval |
The name of the timer must be unique; timer_name must not be the name of a timer that is currently active. To reuse a timer name, call DestroyTimer() to cancel the timer.
If the macro called by the timer has not finished its work by the time the next timer call is issued, then that next call is not executed or is ignored.
// Every 5 seconds, run a macro called "Update Vehicle Locations"
CreateTimer("GPS Vehicle Locator", 5000, "Update Vehicle Locations")
Error Type |
Meaning |
NotFound |
A system limit on timers was reached, and no more can be created by any application |
Function |
Summary |
Cancels a timer that executes a macro at fixed-time intervals |
|
Uses a timer to go into a waiting loop that yields to other processes, allowing Windows messages to be dispatched while waiting |
|
Uses a timer to go into a busy waiting loop that yields to other processes |
|
Start a stopwatch to track clock time |
|
Determine the elapsed time since a stopwatch was started |
|
Stops or cancels a stopwatch |
©2025 Caliper Corporation | www.caliper.com |