title: How to find the time taken by an SQL script to execute completely using java code?
body: <p>I am trying to get the time taken by an SQL script to excute completely using java code.I am having jdbc connection code with me.but i do not have logic to get the time taken by an SQL script to execute.can anybody please send me the code to print the time taken by the SQL script to execute?
  expected result:
  After executing the java code we should get result as:the time taken by the query is :<em>_</em>_</p>