Ignore:
Timestamp:
Mar 16, 2011 9:22:24 AM (8 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/ioqueue_select.c

    r3299 r3456  
    412412 
    413413        pj_assert(key->closing == 1); 
    414         pj_gettimeofday(&key->free_time); 
     414        pj_gettickcount(&key->free_time); 
    415415        key->free_time.msec += PJ_IOQUEUE_KEY_FREE_DELAY; 
    416416        pj_time_val_normalize(&key->free_time); 
     
    609609    pj_ioqueue_key_t *h; 
    610610 
    611     pj_gettimeofday(&now); 
     611    pj_gettickcount(&now); 
    612612    h = ioqueue->closing_list.next; 
    613613    while (h != &ioqueue->closing_list) { 
Note: See TracChangeset for help on using the changeset viewer.