Fix integer/float conversion for timers