Using a delay function

I have been working on this project to develop a slot machine game.
In that I intended to show rotation of slots slowly so as to show true effect of revolving slots.
For that I first made three nested loops of long type running from start to end so as to slow the processor but it slowed a bit not up to which I wanted. I tried 10 loops but it showed processor failed.
I have pentium 4 with 512 mb ram.
I also tried time.h and windows.h header file but they don't seem to work.
I type the same as shown on net.
Topic archived. No new replies allowed.