title: How can I measure the speed of code written in Java? (AI algorithms)
body: <p><strong><em>How can I measure the speed of code written in Java?</em></strong> </p>
  
  <p>I planning to develop software which will solve Sudoku using all presently available AI and ML algorithms and compare time against simple brute-force method. I need to measure time of each algorithm, I would like to ask for suggestions on what is the best way of doing that? Very important, program must be useful on any machine regardless to CPU power/memory.</p>
  
  <p>Thank you.</p>