Hey,
Can you run a loop which increments every turn by some time until it has reached a session time?
Something like this:
long SessionTime=30000; //milliseconds
for (long currentTime=0; i<=SessionTime)
Set a pin high;
Sleep.(1000);
Set the pin low;
currentTime = currentTime+1000;
