Re: [Jprogramming] jQT timer

2014-08-16 Thread Henry Rich
timer =: 3 : 0 NB. Set the timer to y, or turn it off if y is empty wd 'timer ' , ": {. y ) sys_timer_z_ =: 3 : 0 try. myFunc'' NB. This is where your function runs catch. timer'' NB. if myFunc fails, avoid timer loop end. ) myFunc =: 3 : 0 smoutput 'myFunc ran!' ) untested. Henry Ri

Re: [Jprogramming] jQT timer

2014-08-16 Thread Jon Hough
You are, of course, correct. But how do I use that in the context of the qT Timer Demo? e.g. timer=: 3 : 0 if. y do. sys_timer_z_=: 3 : 'smoutput ''systimer: '',":6!:0$0' wd 'timer ',":y else. wd 'timer 0' sys_timer_z_=: ] end. Furthermore, I am unsure how to call

Re: [Jprogramming] jQT timer

2014-08-16 Thread Henry Rich
Look at 6!:1 starttime =: 6!:1 '' start timer some time later elapsedttime =. (6!:1'') - starttime Henry Rich On 8/16/2014 10:49 AM, Jon Hough wrote: I looked at the jQt timer example, which shows an example of outputting the current time every 2 seconds etc. I have been trying to modify t

[Jprogramming] jQT timer

2014-08-16 Thread Jon Hough
I looked at the jQt timer example, which shows an example of outputting the current time every 2 seconds etc. I have been trying to modify this to not only outputting the current time but to increment a timecount variable, perhaps using the 6!:9 foreign conjunction. So that, essentially I have a