Generally, you should use ratio instead of difference when comparing
floats, but in many cases - such as the time one provided by Alex - a
difference is obviously a better idea.

There is no silver bullet, just use whatever works for you in a particular case.

-- Matma Rex