]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use less expensive time func in rtp stack
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Jan 2013 15:15:39 +0000 (09:15 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Jan 2013 15:15:39 +0000 (09:15 -0600)
src/switch_rtp.c

index ed56a6d27db43edcbdbb5be3b1f032ab3fe8e3de..942d106dd91f3f95d1abe994d86af1ae334f974c 100644 (file)
@@ -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;