diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-04-05 19:04:34 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-04-05 19:04:34 +0000 |
commit | 2c2378f0048917b93ee35c85a36b49b65045c9a8 (patch) | |
tree | efa3b0b072d535c1ce5382558c0551ec7a6f8a71 /pjlib/src/pj | |
parent | 54671b6238eef872195153d5720a44f3428c5eaf (diff) |
Don't use rdtsc for high res timestamp on Linux as it's highly inaccurate (for now)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@387 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj')
-rw-r--r-- | pjlib/src/pj/os_timestamp_linux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pjlib/src/pj/os_timestamp_linux.c b/pjlib/src/pj/os_timestamp_linux.c index c78fdd61..9d9ae8e5 100644 --- a/pjlib/src/pj/os_timestamp_linux.c +++ b/pjlib/src/pj/os_timestamp_linux.c @@ -23,7 +23,10 @@ #include <stdlib.h> #include <ctype.h> -#if defined(PJ_HAS_PENTIUM) && PJ_HAS_PENTIUM!=0 +#if defined(PJ_HAS_PENTIUM) && PJ_HAS_PENTIUM!=0 && \ + defined(PJ_TIMESTAMP_USE_RDTSC) && PJ_TIMESTAMP_USE_RDTSC!=0 && \ + defined(PJ_M_I386) && PJ_M_I386!=0 && \ + defined(PJ_LINUX) && PJ_LINUX!=0 static int machine_speed_mhz; static pj_timestamp machine_speed; |