added an error check that sendtime should be less than recv time.