You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by ilib team <il...@yahoo.com> on 2005/03/11 11:24:54 UTC

displaying mysql query speed in velocity

hi there. i would just like to ask if i can display the query speed in mysql just like in Google:
 
"x.xxxx seconds"
 
is there a way that i can do that, I'm currently using Torque, Turbine 2.3, Velocity, MySQL. thank you so much for you help.

		
---------------------------------
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 

Re: displaying mysql query speed in velocity

Posted by Michael Kunze <mi...@chaos-inc.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ilib team wrote:
> hi there. i would just like to ask if i can display the query speed in mysql just like in Google:

yes you can ;)

> is there a way that i can do that, I'm currently using Torque, Turbine 2.3, Velocity, MySQL. thank you so much for you help.

Have you tried the obvious?

long start = System.currentMillis();
// do sql with om object
long timePassed = System.currentMillis() - start;

You probably want to put that in a common baseclass.

Michael
- --
Michael Kunze
http://www.smrealms.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCMYi7ikpRWGebGdQRAgLDAJ9agYiq0Gwe7Wl3NhVVgkzPI0wiugCdGUzF
Z3xWDqztltH/QKn3boBt2mo=
=Ti9j
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org