title: java, Calculating mongodb query execution time
body: <p>I want to log my query times for each time when a query made. </p>
  
  <p>I'm using mongodb on playframework. Simply I'm thinkinig to substract start and end time.For ex: </p>
  
  <pre><code>a=currenttime();
  madequert();
  querytime=currenttime()-a;
  </code></pre>
  
  <p>Is there any better way?</p>