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

    r2394 r3456  
    466466 
    467467        pj_assert(key->closing == 1); 
    468         pj_gettimeofday(&key->free_time); 
     468        pj_gettickcount(&key->free_time); 
    469469        key->free_time.msec += PJ_IOQUEUE_KEY_FREE_DELAY; 
    470470        pj_time_val_normalize(&key->free_time); 
     
    584584    pj_ioqueue_key_t *h; 
    585585 
    586     pj_gettimeofday(&now); 
     586    pj_gettickcount(&now); 
    587587    h = ioqueue->closing_list.next; 
    588588    while (h != &ioqueue->closing_list) { 
Note: See TracChangeset for help on using the changeset viewer.