add elapsed time for sql