title: How to measure performance test on java method?
body: <p>I have a method in java</p>
  
  <pre><code>Public Object someMethod (String param) (
  //some calculations
  Return Object )
  </code></pre>
  
  <p>I want to test the performance of this method ( how much time would it take to reach to db and return an object ) 
  How can I do this? 
  I don't have a main method because its a library. I use unit tests to check if it works. 
  Help. </p>