
If you don't want to see this commit on blames, use the hidden whitespace option on GitHub, or use `-w` in git-blame.
10 lines
236 B
C++
10 lines
236 B
C++
#include "misc_functions.h"
|
|
|
|
void delay(int p_milliseconds)
|
|
{
|
|
QTime dieTime = QTime::currentTime().addMSecs(p_milliseconds);
|
|
|
|
while (QTime::currentTime() < dieTime)
|
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
|
|
}
|