2010-02-03 15:06:29 -05:00
|
|
|
#if defined(_WIN32)
|
|
|
|
# include <windows.h>
|
|
|
|
#else
|
|
|
|
# include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
2010-05-07 11:16:44 -04:00
|
|
|
/* sleeps for 4n seconds, where n is the argument to the program */
|
2010-02-03 15:06:29 -05:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
int time;
|
|
|
|
if(argc > 1)
|
|
|
|
{
|
2010-05-07 11:16:44 -04:00
|
|
|
time = 4 * atoi(argv[1]);
|
2010-02-03 15:06:29 -05:00
|
|
|
}
|
|
|
|
#if defined(_WIN32)
|
|
|
|
Sleep(time * 1000);
|
|
|
|
#else
|
|
|
|
sleep(time);
|
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|