Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cpu usage problem
#1
Code:
Copy      Help
str lt1
int a = 30
tim 3600
    rep
    int ls1 = val(lt1.time("%M"))
    if (ls1 >= (a -1) and ls1 <= (a +1))
        lbkey hwnk VK_RETURN
        0.05
//lbkey Posts keyboard messages.
The CPU utilization rate reached 40% after an hour.
There was a problem?
#2
rep is without waiting.
Also, tim 3600 runs this function again after 1 hour. Look in Threads list, there should be 2 threads of this function.
#3
Thanks, you are great!


Forum Jump:


Users browsing this thread: 1 Guest(s)