projects
/
platform
/
upstream
/
cmake.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 3.24.0
[platform/upstream/cmake.git]
/
Tests
/
CTestTestScheduler
/
sleep.c
1
#include <stdlib.h>
2
3
#if defined(_WIN32)
4
# include <windows.h>
5
#else
6
# include <unistd.h>
7
#endif
8
9
/* sleeps for 4n seconds, where n is the argument to the program */
10
int main(int argc, char** argv)
11
{
12
int time;
13
if (argc > 1) {
14
time = 4 * atoi(argv[1]);
15
}
16
#if defined(_WIN32)
17
Sleep(time * 1000);
18
#else
19
sleep(time);
20
#endif
21
return 0;
22
}