Re: [PHP] show mysql- processing time

2002-11-21 Thread Tularis
ok, let me rephrase that... I ment I would like to use a php-function 
for it, OR a mysql command... just not such a function as I put down here...

Chris Shiflett wrote:

Well, you say you want to return the processing time of a MySQL query
via PHP, but then you go on to say that you do not want to do this in
PHP. :-)

I would recommend Jeremy Zawodny's mytop:

http://jeremy.zawodny.com/mysql/mytop/

Chris

--- Tularis  wrote:

>I was wondering if anyone knew of a way to return the processing
>time of a mysql query via php.
>
>And NOT using the
>
>$starttime = time();
>mysql_query($whatever);
>$endtime = time();
>$processingtime = $endtime - $starttime;



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] show mysql- processing time

2002-11-21 Thread Van Andel, Robert
Sorry,  I didn't read the entire message.  Didn't realize you were already
using my suggestion.

Robbert van Andel 

-Original Message-
From: Tularis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] show mysql- processing time


I was wondering if anyone knew of a way to return the processing time of 
a mysql query via php.

And NOT using the

$starttime = time();
mysql_query($whatever);
$endtime = time();
$processingtime = $endtime - $starttime;

Does anyone please?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


 "The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers." 





RE: [PHP] show mysql- processing time

2002-11-21 Thread Van Andel, Robert
This is what I did.

$StartTime = date("U");
$result = mysql_query($query);
$EndTime = date("U");

$difference = $EndTime - $StartTime;
echo "The query took $difference seconds to generate\n";

Perhaps not the most accurate but who cares about a few milliseconds.

Robbert van Andel 

-Original Message-
From: Tularis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] show mysql- processing time


I was wondering if anyone knew of a way to return the processing time of 
a mysql query via php.

And NOT using the

$starttime = time();
mysql_query($whatever);
$endtime = time();
$processingtime = $endtime - $starttime;

Does anyone please?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


 "The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers." 





Re: [PHP] show mysql- processing time

2002-11-21 Thread Chris Shiflett
Well, you say you want to return the processing time of a MySQL query
via PHP, but then you go on to say that you do not want to do this in
PHP. :-)

I would recommend Jeremy Zawodny's mytop:

http://jeremy.zawodny.com/mysql/mytop/

Chris

--- Tularis <[EMAIL PROTECTED]> wrote:
> I was wondering if anyone knew of a way to return the processing
> time of a mysql query via php.
> 
> And NOT using the
> 
> $starttime = time();
> mysql_query($whatever);
> $endtime = time();
> $processingtime = $endtime - $starttime;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php