Hi.

While trying to test JMeter for measurement accuracy, I've discovered the principle for time-travel. Or maybe it's my Apache web server, which is capable of responding to requests before it receives them... I think I'll request a patent for that and make my first million...

Seriously: I'm seeing negative times in my samples.

So, I've created the attached bit of code, which shows that System.currentTimeMillis() is not reliable. I'm using Linux with a 2.4.18 kernel and libc6 2.3.1-5. The problem occurs with the following JDKs:

java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-02b-FCS)Java HotSpot(TM) Client VM (build Blackdown-1.3.1_02b-FCS, mixed mode)

java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

Can someone please try this on a different O.S., to see if it's my system or the JDK?

Thanks,

Jordi.




--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to