--- parser3/src/classes/table.C 2001/12/04 17:36:25 1.133.2.2 +++ parser3/src/classes/table.C 2001/12/15 21:28:18 1.136 @@ -4,11 +4,10 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: table.C,v 1.133.2.2 2001/12/04 17:36:25 paf Exp $ + $Id: table.C,v 1.136 2001/12/15 21:28:18 paf Exp $ */ #include "classes.h" -#include "pa_config_includes.h" #include "pa_common.h" #include "pa_request.h" #include "pa_vtable.h" @@ -550,14 +549,17 @@ static void _sql(Request& r, const Strin Table_sql_event_handlers handlers(pool, method_name, statement_string, statement_cstr); try { +#ifdef RESOURCES_DEBUG struct timeval mt[2]; //measure:before gettimeofday(&mt[0],NULL); - +#endif r.connection->query( statement_cstr, offset, limit, handlers); - //measure:after connect + +#ifdef RESOURCES_DEBUG + //measure:after connect gettimeofday(&mt[1],NULL); double t[2]; @@ -565,7 +567,7 @@ static void _sql(Request& r, const Strin t[i]=mt[i].tv_sec+mt[i].tv_usec/1000000.0; r.sql_request_time+=t[1]-t[0]; - +#endif } catch(const Exception& e) { // query problem // more specific source [were url] throw Exception(e.type(), e.code(),