What is meant by the 'usleep'

int main()
{
int i=0;
int count =0;
cout<<"Please Input Speed Of Timer (ms):";
cin>>second;
for(;;)
{
for(i=0;i<second;i++)
{usleep(100*100);}
printf("%d\n",count++);
}
return main();
}

What is mean by 'usleep(100*100)' &
'printf("%d\n",count++)' .
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int main()
{
	int i=0;
	int count =0;
	cout<<"Please Input Speed Of Timer (ms):";
	cin>>second;
	for(;;)
	{
	for(i=0;i<second;i++)
	{
		usleep(100*100);
	}
	printf("%d\n",count++);
	}
	return main();
}


Next time, use code tags.

http://linux.die.net/man/3/usleep
Convenient help is to google "man funcname". Try "man usleep", for example.

(For those programming on Windows, use "msdn" instead of "man".)
thank for information ~~

@ResidentBiscuit : The website u provide help a lot thanks~~ :-)
@Duoas : Where should we use "man" ?
Try it at the terminal.
Topic archived. No new replies allowed.