void sleep(unsigned int msec)
{
QTime reachTime = QTime::currentTime().addMSecs(msec);
while(QTime::currentTime() < reachTime);
}
void sleep(unsigned int msec)
{
QTime reachTime = QTime::currentTime().addMSecs(msec);
while(QTime::currentTime() < reachTime);
}