the program loops at 36 times a second. With this knowledge, you could create something that would measure this. I wouldn't advise letting a counter variable get into the thousands, because then the program starts running slower. something like this worked nicely for me:
Code:
//global variables
int count = 0;
int second = 0;
//somewhere in code
if (count >= 37)
{
count = 0;
}
count++;
//you could compare things like this
switch second
{
case 0: //what happens right off the back
break;
case 1: //what happens in the first second
break;
case 2: //what happens in second second (ha!)
break;
default: //what should happen when out of time
}