added time rounding routine