mirror of https://github.com/kiwix/libkiwix.git
+ add kiwix::sleep() method
This commit is contained in:
parent
ae390de24b
commit
aeaede3834
|
@ -18,3 +18,11 @@
|
|||
*/
|
||||
|
||||
#include "otherTools.h"
|
||||
|
||||
void kiwix::sleep(unsigned int milliseconds) {
|
||||
#ifdef _WIN32
|
||||
Sleep(milliseconds);
|
||||
#else
|
||||
sleep(1000 * milliseconds);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
namespace kiwix {
|
||||
|
||||
void sleep(unsigned int milliseconds);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue