I use MySql through C and this goes OK.
Is here a way to get execution duration of the query?
Similar to the way we get “num_rows” or other related data in “mysql result”.
Or I have to measure the time difference between the begining and the end of the execution?
No, measure it yourself. The MySQL library doesn’t do it automatically as this would be a resource drain — and an unfortunate one for those 99% of cases where we don’t want the timings.