$oldtimestamp = timestamp(); nanosleep(0.9seconds); while ( $oldtimestamp == timestamp() ) { nop; } spawnmyself(); dothemysterious();