- Timestamp:
- Nov 13, 2012 8:46:42 AM (12 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util/stun_simple_client.c
r4224 r4297 194 194 195 195 /* Calculate time of next retransmission. */ 196 pj_getti meofday(&next_tx);196 pj_gettickcount(&next_tx); 197 197 next_tx.sec += (stun_timer[send_cnt]/1000); 198 198 next_tx.msec += (stun_timer[send_cnt]%1000); 199 199 pj_time_val_normalize(&next_tx); 200 200 201 for (pj_getti meofday(&now), select_rc=1;201 for (pj_gettickcount(&now), select_rc=1; 202 202 status==PJ_SUCCESS && select_rc>=1 && wait_resp>0 203 203 && PJ_TIME_VAL_LT(now, next_tx); 204 pj_getti meofday(&now))204 pj_gettickcount(&now)) 205 205 { 206 206 pj_time_val timeout; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r4262 r4297 1076 1076 pj_time_val timeout, now; 1077 1077 1078 pj_getti meofday(&timeout);1078 pj_gettickcount(&timeout); 1079 1079 timeout.msec += msec; 1080 1080 pj_time_val_normalize(&timeout); … … 1085 1085 while (pjsua_handle_events(10) > 0 && i > 0) 1086 1086 --i; 1087 pj_getti meofday(&now);1087 pj_gettickcount(&now); 1088 1088 } while (PJ_TIME_VAL_LT(now, timeout)); 1089 1089 }
Note: See TracChangeset
for help on using the changeset viewer.