Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Oct 1999 21:39:13 -0500
From:      chris@tourneyland.com
To:        freebsd-java@freebsd.org
Subject:   Re: time measurement in Java
Message-ID:  <3.0.6.32.19991007213913.00857ec0@mail.9netave.net>
In-Reply-To: <199910072357.QAA88501@bubba.whistle.com>
References:  <199910071614.KAA00139@mt.sri.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>System.currentTimeMillis() returns time in milliseconds (obviously).
>I don't think there's any point in measuring time any more precisely,
>because of the slowness and variances in the execution of Java itself.
>More precision would be 'false precision' I think..

This is perpetuating a common misconception of Java, that Java is in some
way 'limited'. Java is only as limited as its implementations - and in
fact, it's not even that limited, since there's always the possibility of
native code.

So here's a better (or at least more complete) answer - the JDK itself
offers no methods for getting more precise time than milliseconds, but
there maybe be a native code library or two that allow you to do better on
FreeBSD. If there are not, it's not to hard to write your own.

Good luck,
Chris
>
>-Archie
>
>___________________________________________________________________________
>Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-java" in the body of the message
>
>
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.6.32.19991007213913.00857ec0>