[MDEV-12292] port "Report timing with more precision" by @dveeden Created: 2017-03-17  Updated: 2017-06-13  Resolved: 2017-06-13

Status: Closed
Project: MariaDB Server
Component/s: Scripts & Clients
Fix Version/s: 10.3.1

Type: Task Priority: Major
Reporter: Sergey Vojtovich Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: contribution, foundation


 Description   

based upon: dveeden/mysql-server@d5e4642
 
MariaDB [test]> select sleep(0.123);
+--------------+
| sleep(0.123) |
+--------------+
| 0 |
+--------------+
1 row in set (0.123 sec)
 
"More exact timing for mysql client based on my_timer_microseconds"
 
Based on suggestion from @grooverdan on mysql/mysql-server#112
 
This patch is slightly bigger because the original did not preserve the
return type of my_timer_microseconds and this patch does.
(my_timer_microseconds returns ulonglong, not simply ulong)
 
Also I believe the correct place to do the division of microseconds to
seconds is better in the caller of nice_time because nice_time takes a
"double sec" param, so we should convert before calling; the other caller
of nice_time does not call with microseconds.



 Comments   
Comment by Eric Herman [ 2017-04-04 ]

https://github.com/MariaDB/server/pull/332

Generated at Thu Feb 08 07:56:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.