Ignore:
Timestamp:
Mar 16, 2011 9:22:24 AM (13 years ago)
Author:
ming
Message:

Fixed #1211: Add pjlib API pj_gettickcount() that returns a monotonically increasing timestamp

  • Changed the timer_heap to use pj_gettickcount().
  • Changed ioqueue to use pj_gettickcount().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/timer.c

    r1672 r3456  
    466466    PJ_ASSERT_RETURN(entry->_timer_id < 1, PJ_EINVALIDOP); 
    467467 
    468     pj_gettimeofday(&expires); 
     468    pj_gettickcount(&expires); 
    469469    PJ_TIME_VAL_ADD(expires, *delay); 
    470470     
     
    504504 
    505505    count = 0; 
    506     pj_gettimeofday(&now); 
     506    pj_gettickcount(&now); 
    507507 
    508508    lock_timer_heap(ht); 
Note: See TracChangeset for help on using the changeset viewer.