<< Thanks.. sleep(1); actually delays for 1 second and sleep(.1) delays for 1/100 of a second! I don't get it!! >>
(n) is milliseconds. There are 1000 milliseconds in a second.
Therefore to pause for 1 second: sleep(1000)
To pause for .1 second : sleep(100)
To pause for .332 second: sleep(332)
etc...