[tor-commits] [tor/master] Refactor to use safe_timer_diff.