[performance] Measure the time it takes to execute a t-sql query