Log execution time of each statement for SQL profiling