Changeset 1012 for trunk/include/functions.inc.php
- Timestamp:
- Jan 21, 2006, 9:38:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r1008 r1012 431 431 function pwg_query($query) 432 432 { 433 global $conf,$page ;433 global $conf,$page,$debug; 434 434 435 435 $start = get_moment(); … … 453 453 $output.= "\n".$query; 454 454 $output.= "\n".'(this query time : '; 455 $output.= number_format($time, 3, '.', ' ').' s)</b>';455 $output.= '<b>'.number_format($time, 3, '.', ' ').' s)</b>'; 456 456 $output.= "\n".'(total SQL time : '; 457 457 $output.= number_format($page['queries_time'], 3, '.', ' ').' s)'; 458 $output.= '</pre>';458 $output.= "</pre>\n"; 459 459 460 echo$output;460 $debug .= $output; 461 461 } 462 462 … … 472 472 $now2 = $now[1].'.'.$now2[1]; 473 473 $time = number_format( $now2 - $t2, 3, '.', ' ').' s'; 474 $debug .= '<p>'; 474 475 $debug.= '['.$time.', '; 475 476 $debug.= $count_queries.' queries] : '.$string; 476 $debug.= " \n";477 $debug.= "</p>\n"; 477 478 } 478 479
Note: See TracChangeset
for help on using the changeset viewer.