sleep(1); #waits/sleeps for one second then continue running the script
Q1. How to make this 1/100 of a second? which of these work: 0,01>
0,01>
Use usleep in which you can pass in microseconds,
so for your case you can call usleep(10000) to sleep for 1/100 of a second.
usleep(10000)