Announcement

Collapse
No announcement yet.

System timer to minutes, sec & millisecs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • System timer to minutes, sec & millisecs

    Hi,
    I need code for a laptimer/intermediat timep. I converted the system timer into clock format.
    I wrote this sample piece of code to give an idea, but if someone has a better, I really would appreciate it. This is for 32PT.



    func main()

    var tL,tH,tmp,sec,mins,ms,x:=0,y:=0;

    touch_Set(TOUCH_ENABLE);
    repeat
    if (touch_Get(TOUCH_STATUS)==TOUCH_PRESSED)
    y:=y+10;
    if (y>310)
    y:=0;
    x:=x+80;
    if(x>220)
    x:=0;
    y:=0;
    gfx_Cls();
    endif
    endif
    endif

    gfx_MoveTo(x,y) ;
    tL:=sys_T();
    tH:=sys_T_HI();
    tmp:=0;
    if (tL
Working...
X