The timer now works with non-integers