posted 16 years ago
You may prefer to use the System method which gets time in nanoseconds, called something like nanoTime() (look in the API for the correct spelling).Also note how long it takes to run when there is no code between the two nanoTime calls. Note that timings vary quite a bit on successive runs, even when everything else appears unchanged.