Sleep.cpp

EmberMUD-0.9.40-Pre4/src/Sleep/Sleep.cpp · 311 B

From the archive EmberMUD-0.9.40-Pre4.zip

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;
}

Site Stats

Snippets: 1791
Codebases: 571