Add timing to query log statements.