📅  最后修改于: 2022-03-11 15:04:49.980000             🧑  作者: Mango
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