Displaying time taken to get Results from MySQL Database



Hi. I am writing a program in java which gets results from a MySQL
Database. I would like to know how, or if it is possible, to display in
a label the amount of time taken to get the results from the MySQL
Database. I thought it might be something like
statusBar.setText("" + getSQLTime) but this doesn't seem to work.

Can anyone help with this matter. Thanks very much.

.



Relevant Pages

  • Re: Java and MySql program example ?
    ... > I am trying to learn Java and need an example program with MySql ... > MySql database. ... Database connection established ...
    (comp.lang.java.programmer)
  • Re: mysql vs sqlite vs hsql
    ... My question isabout benchmarks and multiple inserts & ... > I current have a mysql database of approx. ... lemme dispell the very common misconception that java is slow. ...
    (comp.lang.python)
  • Re: MySQL Database problem (probably already solved in a message, but this is somewhat urgent)
    ... MySQL server has a database with a table, ... columns, an FSR column, and a password column. ... checked if the supposed arrays that were returned were actually arrays ...
    (comp.lang.php)
  • RE: FreeBSD 5.3 MySQL Performance
    ... versions of Linux and FreeBSD for most tests. ... > popular with the ATA disk drive manufacturers. ... > Many companies have used FreeBSD and MySQL for years and years. ... it is not often that you have such a small database and such a large ...
    (freebsd-questions)
  • Re: Java and MySql program example ?
    ... > I am trying to learn Java and need an example program with MySql ... > MySql database. ... wants a copy of the code email me at jdanyjavajunkie at yahoo.com ...
    (comp.lang.java.programmer)