Link to home
Start Free TrialLog in
Avatar of dchell
dchell

asked on

How to retrieve the current time in fractions of a second in MySQL

I have a multi-step MySQL stored procedure that takes a little while to run, and I would like to find out which statements need optimizing. Is there a way to find the current time in mill or microseconds in MySQL so I can output some simple profiling info.

Thanks,
d.
Avatar of Raynard7
Raynard7

sorry, you can't - unless you want to hack the code to use an rpc call to the server
Avatar of dchell

ASKER

mmm, well that's seriously dissapointing.
ASKER CERTIFIED SOLUTION
Avatar of db2inst1
db2inst1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dchell

ASKER

That worked a treat, once I got 5.0.37 installed, I tried installing the latest 5.0.45 but InnoDB got sglan 11 every time on startup - had to go back to 5.0.37.