Milliseconds
A millisecond (abbrev. ms) is one thousandth of a second. Therefore, a second divides into 1000 milliseconds.
Accuracy
The accuracy of the ability to measure milliseconds is dependent on the operating system. Some only have the ability to count milliseconds in chunks. for example, 16 ms at a time.
Sleep
Milliseconds are used with a waiting command, most often called Sleep. You can define how many seconds you want the game to sleep by adding 3 zeros to the number of seconds you want the game to sleep.
Sleep for 4 Seconds
Alternately, you can multiply the number of seconds you want the game to sleep by 1000.
Which version you use will depend on your specific programming tastes.
Measurement of Time
- 16.666666666666666666666666666667 milliseconds are one jiffy.
- 1000 milliseconds are one second.
Related Pages
| Categories: Timing |
page_revision: 7, last_edited: 1237874139|%e %b %Y, %H:%M %Z (%O ago)