Note this is all pre-QDataSet. QDataSet would be a much better way of implementing this.
When times are the independent parameter, we have to add a little fuzz because of rounding errors.