Remote-processing CAMBASIC Manual do Utilizador Página 165

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 208
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 164
Commands - 132
TICK
Process Function
SYNTAX: a= TICK(n)
PURPOSE: To return the time from the TICK timers.
REMARK S: n is from 0 to 2, corresponding to a tick timer.
There are thr ee TIC K timer s in CAM BASIC that accum ulate on a 12 ho ur basis. These ar e separa te
from the calendar/clock and are not battery-backed.
The functions return the time in 0. 005 (0.010 in 9 MH z systems) second incr ements up to 12 hour s.
Using the process clock has an advantage over the calendar/clock in that you deal only w ith seconds,
and not hours and m inutes.
On power– up all TICK timers start at 0.0 and begin counting. You can reset the process at any
time by using the CLEAR TICK statement. The process clock cannot be preset to a value other than
0 (using CLEAR TICK).
These tick counters are separate from those used in ON TICK.
RELATED: CLEAR TICK, ON TICK
EXAMPLE: 10 CLEAR TICK 2
20 FOR X=0 TO 5000 : NEXT
30 PRINT TICK (2)
RUN
.6
ERROR: < Data negative> - for n
< Data out of range> - if n > 2
Vista de página 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 207 208

Comentários a estes Manuais

Sem comentários