Re: please help.
| From: | McShen | Date: | Wed, 18 Jul 2001 16:54:43 +0000 |
| Subject: | Re: please help. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58472@lists.php.net to get a copy of this message | ||
ok thx
"Michael Geier" <mgeier@cdmsports.com> wrote in message
news:DBENIBPGPEKDMHAKBOMHEEPLCFAA.mgeier@cdmsports.com...
> try using the attached class.
>
> <?
> $time = new timer;
> $time->start();
>
> // some code
>
> $time->stop();
> $total = $time->gettime();
> echo $total;
> ?>
>
> -----Original Message-----
> From: McShen [mailto:hshen@crosswinds.net]
> Sent: Wednesday, July 18, 2001 11:08 AM
> To: php-general@lists.php.net
> Subject: [PHP] please help.
>
>
> hi
>
> I wanna see how long my scripts load. So, i copied this script from
> phpbuilder
> -------
> <?php
> $timeparts = explode(" ",microtime());
> $starttime = $timeparts[1].substr($timeparts[0],1);
> $timeparts = explode(" ",microtime());
> $endtime = $timeparts[1].substr($timeparts[0],1);
> echo bcsub($endtime,$starttime,6)
> ?>
> ----------
>
> But i am not sure where to put that part. Can i put it anywhere within my
> script? And bcsub() is not install on my server. What other fuctions can
i
> use? can i just use $endtime-$starttime?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>