plugins/Markov.rb
# Print the time a possibly long-standing operation takes.
Print the time a possibly long-standing operation takes.
Print the time a possibly long - standing operation takes .
def track_time(source, &block)
		before = Time.now
		block.call
		after = Time.now
		say(source, "Took #{after-before} seconds.")
	end
def track_time ( source , & block ) before = Time . now block . call after = Time . now say ( source , "Took #{after-before} seconds." ) end
Print the time a possibly long-standing operation takes.
Print the time a possibly long - standing operation takes .
source
<not_specific>
block
<not_specific>