Przemek, this function is great!  Do you think it would be a worthy
inclusion in the Harbour functions?  It might be quite useful, specially if
you could do...

nTask = HB_TIMER({|| stuff() }, 1000)

Just a thought.  Maybe there's an even more useful prototype you or someone
else could think of.  I think it'd be handy!

2010/1/28 Przemysław Czerpak <[email protected]>

> On Thu, 28 Jan 2010, smu johnson wrote:
>
>   proc main()
>      cls
>      hb_idleAdd( {||
>                     static s_timer := 0
>                     local timer := hb_milliseconds()
>                     if timer - s_timer > 1000 // execute once per second
>                        s_timer := timer
>                        hb_dispoutat( 0, 72, time() )
>                     endif
>                     return nil
>                  } )
>      wait
>   return
>
> best regards,
> Przemek
> _______________________________________________
> Harbour-users mailing list (attachment size limit: 40KB)
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour-users
>



-- 
smu johnson <[email protected]>
_______________________________________________
Harbour-users mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour-users

Reply via email to