Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: How to delay without polling?

  1. #11
    I am replying now because I didn't hava much free time. I didn't tackled the problem. However, I remember, but it doesn't mean that I know much as I am not that expert in programming, that in the old days of dos one could set registers in the cpu and have an interruption; instead of running a continuous ask to a timer if the time has passed, the cpu itself triggered the event you want.

    @SilverWarior, thanks for the revert! Also, the method you described, uses sleep; try a simple loop of incrementing an integer, and try to use sleep(1) and no sleep. Also display that integer per 1000 or 10000 or 100000 increments and see both the frequency of the output and the task manager.
    Last edited by nerduke; 18-07-2022 at 05:06 PM.

  2. #12
    Quote Originally Posted by nerduke View Post
    I am replying now because I didn't hava much free time.
    I'm afraid we all suffer from limited time. Anyway. Keep up the good work and please keep us updated about your progress.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •