提交 a46c8972 authored 作者: Anthony Minessale's avatar Anthony Minessale

use less expensive time func in rtp stack

上级 8b195824
......@@ -1058,7 +1058,7 @@ static int check_srtp_and_ice(switch_rtp_t *rtp_session)
if (rtp_session->send_time) {
when = rtp_session->send_time;
} else {
when = switch_time_now();
when = switch_micro_time_now();
}
sr->ntp_msw = htonl((u_long)(when / 1000000 + 2208988800UL));
......@@ -4425,7 +4425,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
}
#endif
now = switch_time_now();
now = switch_micro_time_now();
#ifdef RTP_DEBUG_WRITE_DELTA
{
int delta = (int) (now - rtp_session->send_time) / 1000;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论