*Can someone help me on using elapsed time, my code doesn't work. Please edit it for me.*
int time=10;//int that has amount of time I want to count
if(t.elapsedTime()>time)//if the time already passed is bigger than the time I want to count
{
cout<<"You ran out of time!"<<endl;//say you ran out of time
return 0;//end program
}