Module: TimeHelpers
- Included in:
- ProfilerDB, Tracer
- Defined in:
- lib/shoes/profiler.rb,
lib/shoes/profiler.rb
Overview
module
Instance Method Summary collapse
Instance Method Details
#cpu_time ⇒ Object
29 30 31 |
# File 'lib/shoes/profiler.rb', line 29 def cpu_time Process.clock_gettime(Process::CLOCK_PROCESS_CPUTIME_ID, :microsecond) end |
#wall_time ⇒ Object
33 34 35 |
# File 'lib/shoes/profiler.rb', line 33 def wall_time Process.clock_gettime(Process::CLOCK_MONOTONIC, :microsecond) end |