MySQL Forums
Forum List  »  Stored Procedures

Re: Optimizing a Stored Procedure
Posted by: Rick James
Date: January 12, 2013 06:36PM

> MySQL 6.3.0.642
No such version of the server.

SELECT @start := NOW();
...
51client> SELECT TIMEDIFF(NOW(), @start);
+-------------------------+
| TIMEDIFF(NOW(), @start) |
+-------------------------+
| 00:00:15                |
+-------------------------+
But that is resolution only to the second. For higher resolution, use PHP's microtime or Perl's Time::HiRes or ...

Options: ReplyQuote


Subject
Views
Written By
Posted
3224
January 09, 2013 01:25PM
Re: Optimizing a Stored Procedure
1596
January 12, 2013 06:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.