class Timmy::TargetedTimer

Attributes

definition[R]
duration[R]
group[R]
label[R]
start_time[R]

Public Class Methods

new(definition, label: nil, group: nil) click to toggle source
# File lib/timmy/targeted_timer.rb, line 5
def initialize(definition, label: nil, group: nil)
  @definition = definition
  @label = label
  @group = group
  @start_time = MasterTimer.get
end

Public Instance Methods

stop() click to toggle source
# File lib/timmy/targeted_timer.rb, line 12
def stop
  @duration = MasterTimer.get - @start_time
end