Prevent overflows in us_tdiff and ms_tdiff.