algorithm - Java task runtime -
First of all I have to admit that these are very basic and primitive questions ... I have to show different algorithms in Java There are issues I can not solve for sorting and searching, and to get a value for runtime:
-
There is a hotspot compiling - a runtime optimization That's what I need to disable (I think).
-
How do I get time-values (seconds) for runtime? Starting a timer before execution and stopping it later ... looks a bit primitive. And the timer object uses the runtime itself ... I need to avoid that.
Can anything in the Java API be used to solve these problems?
Thanks, Klaus
-
Use
- XintJMM flag can be seen in other options. -
Use the API to get the CPU / user times for your thread. An example can be seen.
Comments
Post a Comment