Ruby 2.7 added sub seconds
Time#inspect and separated it from
Rails also added sub seconds to
This is particularly helpful when multiple time objects are created in a short interval. For e.g., when executing imports in parallel, or when we need to assert time differences in our test cases.
As seen above the
nsec part is not ignored anymore when we use inspect.
This is useful for finer comparisons, assertions and usage with time across databases and systems.