Hello everyone!
As I am trying to write a small demo, I stumbled on this problem:
Let's deviate from my demo and go to a simple repeat loop that does write an increasing integer and outputs every one second (using getticount64). If I put sleep or delay for 1 millisec, the perfromance tanks. I am talking about from about 15.000.000 loops to about 1000 loops. The utilization drops from 100% (one thread) to 0%.
How to do *something* when a specific time passes, without checking on every tick (and thus eating cpu)?
Bookmarks