Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Execution time of a method.

843811May 21 2005 — edited Jun 15 2005
Hi everybody.

I'm trying to program a chess player. The algo is ok but takes too mutch time.

By trying to optimize my code, I've tested the execution time tooken by many pieces of code.

I've found a method which takes the most often 0 ms, but some time to times, it takes 15 or 30 ms.

As this method has to be called thousends times, the program becoms very slow.

Has someone an axplaination why some times the method is executed in only 15 ms instead of 0 ?

Thank's in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2005
Added on May 21 2005
10 comments
138 views