SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Feb 8, 2005, 01:15 #1
- Join Date
- May 2004
- Location
- Sunshine Coast, Australia
- Posts
- 42
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
how many queries and execution time
Hi, does anyone know the commands to display how many queries were executed and how long the execution time was ?
Yeah its for a PHP page.
Thanks
-
Feb 8, 2005, 13:24 #2
- Join Date
- Sep 2003
- Location
- Wixom, Michigan
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by nerf
In a nutshell, there isn't a single "command" to display the queries executed in one page, or the page execution time for that matter, you will have to build your application with some kind of logger that keeps track of every query generated so that it can be displayed at the end of the page. As far as the time that takes to render a page, try something like this
PHP Code:<?php
$time_start = microtime(true);
// your page contents go here
$time_end = microtime(true);
$time = $time_end - $time_start;
?>Garcia
Bookmarks