Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Sleep

Every operating system has its own way sleep function. That is quite annoying and we haven't yet found a library that deals easily with it. So we simply defined the following functions for linux and windows:

sleep(unsigned long value) Makes the current thread sleep for value seconds
msleep(unsigned long value) Makes the current thread sleep for value milliseconds
usleep(unsigned long value) Makes the current thread sleep for value microseconds
Last modified 7 years ago Last modified on Apr 12, 2017, 11:30:25 PM