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/ioqueue_winnt.c

    r3051 r3456  
    620620 
    621621        pj_assert(key->closing == 1); 
    622         pj_gettimeofday(&key->free_time); 
     622        pj_gettickcount(&key->free_time); 
    623623        key->free_time.msec += PJ_IOQUEUE_KEY_FREE_DELAY; 
    624624        pj_time_val_normalize(&key->free_time); 
     
    875875        pj_ioqueue_key_t *key; 
    876876 
    877         pj_gettimeofday(&now); 
     877        pj_gettickcount(&now); 
    878878         
    879879        /* Move closing keys to free list when they've finished the closing 
Note: See TracChangeset for help on using the changeset viewer.