tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat performance measurments...
Date Fri, 28 Sep 2007 19:40:13 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rainer,

Rainer Jung wrote:
> mod_jk as well as Apache httpd use apr_time_now(). I checked with APR
> 1.2 (httpd 2.2): on Unix/Linux this is gettimeofday().
> 
> Even on an old Solaris 8 system, I can easily get microsecond resolution
> out of a C test program using gettimeofday(), i.e. successive calls to
> gettimeofday return microsecond values differing by 0 or 1 microsecond.

Good to know. IIRC, win32 supports the same call and the API would lead
you to believe that the timer has that accuracy, but the implementation
ends up using a lower-resolution timer and so you always get less
resolution than you'd expect. That may have been a long time ago.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG/Vid9CaO5/Lv0PARAsCAAKC9jSfwGPWQjQwt2BI9vuDpP6OCnwCfcE2B
MKL2Om4e4D/32Mseu3lZyVY=
=sxNV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message