Ruby oblicz czas wykonywania

starting = Process.clock_gettime(Process::CLOCK_MONOTONIC)

# time consuming operation(s)

ending = Process.clock_gettime(Process::CLOCK_MONOTONIC)
elapsed = ending - starting
elapsed # => 9.424242424242424 seconds
I got 99 problems but a bug aint one!