module Trashed::Instruments::Timepiece

Public Class Methods

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