Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @f = File.open("log.txt","a+")
- def start; @f.puts 'started at: '+(@t=Time.now).to_s end
- def lap; @f.puts 'passed: '+(Time.now-@t).to_s end
- def stop; lap;@f.close;'s' end
- while !(send($<.gets.chop.to_sym) rescue stop); end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement