lib/monotonic_tick_count.rb
def timer
      start_tick = self.now
      result = yield(start_tick)
      [result, self.now - start_tick]
    end
# yields to the caller and returns a pair: [result from yield, float time in seconds of block run]
yields to the caller and returns a pair: [result from yield, float time in seconds of block run]
yields to the caller and returns a pair : [ result from yield float time in seconds of block run ]
def timer
      start_tick = self.now
      result = yield(start_tick)
      [result, self.now - start_tick]
    end
def timer start_tick = self . now result = yield ( start_tick ) [ result , self . now - start_tick ] end
yields to the caller and returns a pair: [result from yield, float time in seconds of block run]
yields to the caller and returns a pair : [ result from yield float time in seconds of block run ]