How to find the time taken by an SQL script to execute completely using java code? -



How to find the time taken by an SQL script to execute completely using java code? -

i trying time taken sql script excute using java code.i having jdbc connection code me.but not have logic time taken sql script execute.can please send me code print time taken sql script execute? expected result: after executing java code should result as:the time taken query :__

you don't need utilize calendar instance. here's simpler solution:

long millisstart = system.currenttimemillis(); // run query here long millisend = system.currenttimemillis(); system.out.println(millisend - millisstart);

java

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -