Sleep.cpp
EmberMUD/src/Sleep/Sleep.cpp · 332 B
From the archive EmberMUD-0.9.47.tar.gz
Download the archive « Back to the archive contents
// Sleep.cpp : Defines the entry point for the console application.
//
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
int main( int argc, char *argv[] )
{
if ( argc < 2 )
{
printf( "Usage: Sleep <Time in seconds>\n\r" );
exit( 1 );
}
Sleep( atoi( argv[1] ) * 1000 );
return 1;
}