[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Function cronometer (stopwatch-counter)
- From: Dan - Lintouch user <automacaovida-d2@...>
- Date: Thu, 9 Nov 2006 14:42:54 +0000 (GMT)
Please, request builder one function make cronometer.
Create automatic variables for each ID and receives commands: On, Stop and Reset
Cheat, for get time hadrware t=os.date(*t) -> t.sec, t.min, t,hour
function cronometer(ID, command) end
---Main
time1=cronometer(1,"On") --create cronometer ID 1 and start
cronometer(20,"Stop") --create cronometer ID 20 and not start
... others instrutions
time2=cronometer(20,"On) --Start cronometer 20
time1 and time 2 receive values real temporization
diff=time2 - time1
Please, dont sucess make this function.My project stopped, it barrier.
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!