jeezcak3++ 36 Newbie Poster

Hi, I am new to the forum. I am in the learning process and I will stick around until I learn everything from you.

I try to create count down starting at 15 seconds. But when I compile, "clock identifier not found." I am !ondering the same thing, too. Perhaps can you explain how it works and give me correct it for me? I learn it faster by that way. Thanks!

void counter(int seconds)
{
	clock_t endTurn;
	endTurn = clock() + seconds * CLOCKS_PER_SEC;
	while (clock() < endTurn){}
}

void move()
{
	int countDown;
	for (countDown = 15 ; countDown > 0; countDown--)
	{
		counter(1);
	}
}
Ancient Dragon commented: Great Going! Used code tags correctly on very first post :) :) +36