C++ (Qt)class Helper: public QThread {public: static void msleep(int ms) { QThread::msleep(ms); }};.....Helper::msleep(5);
C++ (Qt)void QThread::sleep(unsigned long secs){ ::Sleep(secs * 1000);} void QThread::msleep(unsigned long msecs){ ::Sleep(msecs);} void QThread::usleep(unsigned long usecs){ ::Sleep((usecs / 1000) + 1);}