| Andrew Thompson 2004-09-22, 9:10 am |
| On Wed, 22 Sep 2004 08:11:52 -0400, jascas wrote:
> I am trying to find out how long it would take for a method to run in
> miniseconds
That is 'milliseconds'. Look at the JavaDocs for currentTimeMillis()
<http://java.sun.com/j2se/1.5.0/docs...#method_summary>
Note that this is of little practical use.
A lot of factors go into how long a method takes to run.
These including the VM (how aggressively it optimizes bytecodes)
how long the test is run (improves with time) and how much
time the underlying OS devotes to the Java threads.
>..(Timing Methods) and then write the result to file.
<http://mindprod.com/fileio.html>
HTH
--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
|