title: how to get the running time of a query in intellij for a search query
body: <p>I have built a search application in intellij idea and I want to test the performance of the search query.</p>
  <p>I am using mongo db in backend, latest community version (5.0) and there is a 250Mb .bson file through which I need to run the query.</p>
  <p>I am using mongo terminal (mongosh).</p>
  <p>How do I add this .bson file to local database using mongosh. ( I tried using mongorestore in mongosh before which says it is not available).</p>
  <p>Second ,i need to change the configuration in intellij so that it connects to local mongo. how to i do this, any suggested plugins ?</p>
  <p>Third how do I measure the total time taken in java, (is there anything similar to starttime and endtime in java).</p>
  <p>Any suggestions are appreciated.</p>
  <p>Thank you.</p>