Prosoft-technology MVI69-ADM Manual de usuario Pagina 167

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 166
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)
Vista de pagina 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 341 342

Comentarios a estos manuales

Sin comentarios