// Globals 2: getting global ints and floats and responding to global Events
global Event metro;
global int ticks;
global float timeInSeconds;
fun void RideTheMetro()
{
while( true )
{
0.348::second => now;
ticks++;
now / second => timeInSeconds;
metro.broadcast();
}
}
spork ~ RideTheMetro();
while( true )
{
1::second => now;
}