Ok guys, feed me with knowledge. I've created these cool '3D' buttons in C and they behave pretty much like those in Windows. They user highlights them, hits ENTER and the button depresses.
That works fine.
However, because the code is executed so fast, the depress action is barely visible, except on a really slow computer. The best I could do was to make it sleep for 1 second in between it being pressed down and popping back up to its original position.
Sleeping for 1 second each time the button is depressed becomes pretty unnerving very quickly. So here's my question:
How do you get C to sleep or Pause for less than a second? Like 0.7 seconds or something like that? I've used other programming languages that allow you to sleep in milliseconds and that is fine. But there seems to be no standard way of doing it in C.
I'd appreciate any assistance. Thanks.