Update timer.rb

Enhanced timer accuracy by switching to_i --- > to_f