Expect notes
From Federal Burro of Information
timing stuff in expect:
#!/usr/bin/expect set timeout 60 set now [clock seconds] puts "some\n"; puts "some\n"; puts "some\n"; puts "some\n"; puts "some\n"; set later [clock seconds] puts "[expr {$later - $now}]"