+ add kiwix::sleep() method

This commit is contained in:
kelson42 2014-04-02 16:55:35 +02:00
parent ae390de24b
commit aeaede3834
2 changed files with 10 additions and 0 deletions

View File

@ -18,3 +18,11 @@
*/ */
#include "otherTools.h" #include "otherTools.h"
void kiwix::sleep(unsigned int milliseconds) {
#ifdef _WIN32
Sleep(milliseconds);
#else
sleep(1000 * milliseconds);
#endif
}

View File

@ -22,6 +22,8 @@
namespace kiwix { namespace kiwix {
void sleep(unsigned int milliseconds);
} }
#endif #endif