What is the way to calculate in milliseconds the time of an action in ruby?
I'm doing the following:
start_time = Time.now
Execute given code that takes a few milliseconds
end_time = (Time.now - start_time)
And as a result I get for example: 0.048813
The question is: Is this value in milliseconds (ms) or in seconds?
How do I check it with fewer decimal places, type 48.81 ms?