var running;
void StopWatch(var* Seconds)
{
static var seconds;
seconds= *Seconds;
while(running)
{
wait(1);
seconds += (timer()/1000000);
}
return;
*Seconds = seconds;
return;

}

This is what I am currently using (as I only need seconds), but it is not working.

Starting it with running=1; StopWatch(SS);
doesn't work...