Tracing queries and how to find execution timings etc

Perhaps, I can use this :

select count(*) num,
min(serviceTime) minEx, max(serviceTime) maxEx,
avg(str_to_duration(serviceTime)/1000000000) avgEx,
statement
from system:completed_requests
where phaseCounts.primaryScan is not missing
group by statement;

This is from the link you shared earlier: