module Barnes::Instruments::Timepiece

Public Class Methods

cpu() click to toggle source
# File lib/barnes/instruments/stopwatch.rb, line 76
def self.cpu
  Process.clock_gettime Process::CLOCK_PROCESS_CPUTIME_ID, :float_millisecond
end
wall() click to toggle source
# File lib/barnes/instruments/stopwatch.rb, line 70
def self.wall
  ::Time.now.to_f * 1000
end