Adm api clock functions – ProSoft Technology MVI69-ADM User Manual
Page 167

MVI-ADM ♦ 'C' Programmable
Application Development Function Library - ADM API
'C' Programmable Application Development Module
Developer's Guide
ProSoft Technology, Inc.
Page 167 of 342
February 20, 2013
7.5
ADM API Clock Functions
ADM_StartTimer
Syntax
unsigned short ADM_StartTimer(ADMHANDLE adm_handle)
Parameters
adm_handle
Handle returned by previous call to ADM_Open
Description
ADM_StartTimer can be used to initialize a variable with a starting time with the
current time from a microsecond clock. A timer can be created by making a call
to ADM_StartTimer and by using ADM_CheckTimer to check to see if timeout
has occurred. For multiple timers call ADM_StartTimer using a different variable
for each timer.
adm_handle must be a valid handle returned from ADM_Open.
Return Value
Current time value from millisecond clock
Example
Initialize 2 timers.
ADMHANDLE adm_handle;
unsigned short timer1;
unsigned short timer2;
timer1 = ADM_StartTimer(adm_handle);
timer2 = ADM_StartTimer(adm_handle);
See Also
ADM_CheckTimer (page 168)