Ignore:
Timestamp:
Apr 5, 2006 7:04:34 PM (18 years ago)
Author:
bennylp
Message:

Don't use rdtsc for high res timestamp on Linux as it's highly inaccurate (for now)

File:
1 edited

Legend:

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

    r66 r387  
    2424#include <ctype.h> 
    2525 
    26 #if defined(PJ_HAS_PENTIUM) && PJ_HAS_PENTIUM!=0 
     26#if defined(PJ_HAS_PENTIUM) && PJ_HAS_PENTIUM!=0 && \ 
     27    defined(PJ_TIMESTAMP_USE_RDTSC) && PJ_TIMESTAMP_USE_RDTSC!=0 && \ 
     28    defined(PJ_M_I386) && PJ_M_I386!=0 && \ 
     29    defined(PJ_LINUX) && PJ_LINUX!=0 
    2730static int machine_speed_mhz; 
    2831static pj_timestamp machine_speed; 
Note: See TracChangeset for help on using the changeset viewer.