To check a sql statement execute time, we can use profiling
profiling
set profiling = 1; select * from user; show profiling; show profiling for query 1;
Reference