mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
+ add kiwix::sleep() method
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user