Originally posted by Stefan Krompass: Hi, how can I measure the execution time of a query in the database (DB2)? Something like ... Statement s = con.createStatement(); long start = System.currentTimeMillis(); ResultSet rs = s.executeQuery(sql); long end = System.currentTimeMillis(); ... won't work (IMHO) since network time is included. Stefan
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos] Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2