projects
/
xmlrpc-c
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
379be0cd98f8e2d45016c0f82ed00546577b8072
[xmlrpc-c]
/
lib
/
libutil
/
sleep.c
1
#include "xmlrpc-c/sleep_int.h"
2
3
#ifdef WIN32
4
#include <process.h>
5
#else
6
#include <unistd.h>
7
#endif
8
9
10
void
11
xmlrpc_millisecond_sleep(unsigned int const milliseconds) {
12
13
#ifdef WIN32
14
Sleep(milliseconds);
15
#else
16
usleep(milliseconds * 1000);
17
#endif
18
}