Time should be of type float.