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:

  1. There is a hotspot compiling - a runtime optimization That's what I need to disable (I think).

  2. 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

  1. Use - Xint JMM flag can be seen in other options.

  2. Use the API to get the CPU / user times for your thread. An example can be seen.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -