modify timer to use a single float value