Wait/sleep program less 1 milisecond

76 views
Skip to first unread message

AL67

unread,
Jul 23, 2021, 7:53:30 AM7/23/21
to Harbour Users

Hi!
Function  HB_IDLESLEEP()  working only for time  >=  0.001 sec
Is way to wait/sleep program for time less 1 milisecond ?
Sample after HB_COMSEND() and before  HB_COMRECV()

Adam

Diego Pego

unread,
Jul 23, 2021, 10:37:59 AM7/23/21
to Harbour Users
I don't know for a specific milisecond counter. I'd use ticks in your case.
function my_wait(ticksToWait)
    local counter
    for counter := 1 to ticksToWait
        hb_idleState()
    next
return nil
Reply all
Reply to author
Forward
0 new messages