Add timing around transaction.