class Stopwatch
Attributes
end_time[RW]
start_time[RW]
Public Instance Methods
elapsed_time()
click to toggle source
# File lib/kale/stopwatch.rb, line 13 def elapsed_time self.end_time - self.start_time end
start()
click to toggle source
# File lib/kale/stopwatch.rb, line 5 def start self.start_time = Time.now end
stop()
click to toggle source
# File lib/kale/stopwatch.rb, line 9 def stop self.end_time = Time.now end