I highly recommend this article if you're interested in robust and reliable ways to build business logic that includes the notion of elapsed time.
"Elapsed time with Ruby, the right way" by Luca Guidi
https://blog.dnsimple.com/2018/03/elapsed-time-with-ruby-the-right-way/