Use float rather than int for time