Quote:
Hello,
most of my programs in my previous calc (Hp49gII) where related to time functions. I would like to recreate some of these programs on my Prime.
Do you know how to convert these TICKS() in hours, minutes and seconds?
thanks
Giancarlo
from the Cappuccino state
Tim from HP wrote the following when I asked if the New Prime had a stopwatch function.
Very simple and very preliminary but be useful in answering your question.
EXPORT STOPWATCH()
BEGIN
rect(); //clear screen
local start:=ticks,count:=0; //make some locals
while getkey()==-1 do //while no key is pressed
textout_p(→HMS((ticks-start)/1000),40,40,7,RGB(0,0,125),100,RGB(255,255,255));
textout_p(count:=count+1,0,0,2,RGB(150,0,0),100,RGB(255,255,255));
end;
expr(string((ticks-start)/1000)+"_s"); //make a nice result
end;
END;
Note: In forum message listing the arrow before HMS((ticks-
is replaced by →