|
@@ -47,8 +47,8 @@ def parse(message)
|
|
|
end
|
|
end
|
|
|
when "tick"
|
|
when "tick"
|
|
|
puts "#{Time.now.strftime('%M%S%L')}: #{message}"
|
|
puts "#{Time.now.strftime('%M%S%L')}: #{message}"
|
|
|
- puts "tick took: #{Time.now.strftime('%M%S%L') - $lasttick}"
|
|
|
|
|
- $lasttick = Time.now.strftime('%M%S%L')
|
|
|
|
|
|
|
+ puts "tick took: #{Time.now.strftime('%M%S%L').to_i - $lasttick}"
|
|
|
|
|
+ $lasttick = Time.now.strftime('%M%S%L').to_i
|
|
|
decide()
|
|
decide()
|
|
|
when "die"
|
|
when "die"
|
|
|
puts "#{Time.now.strftime('%M%S%L')}: #{message}"
|
|
puts "#{Time.now.strftime('%M%S%L')}: #{message}"
|