phpbar.de logo

Mailinglisten-Archive

RE: [php] Dauer von SQL-Abfragen
Archiv Mailingliste php_(at)_infosoc.uni-koeln.de

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [php] Dauer von SQL-Abfragen



Hi....

jetzt sind es tausenstel.... ich würde sagen einfach auf eine secunde
umrechnen...
must mal nen bissel an dem rechnteil rumfummeln.... sollte kein problem
sein.
schau mal ich glaube du must was im function stoppuhr_off() ändern.
der code ist auch nicht von mir sondern von ner libary daher kann ich
dir nicht 100%tig sagen was du machen musst :-)

Beste Grüße aus Sinzig,

Alexander Meis
pixelhouse media service

----------------------------------------------------------------
 - Barbarossastraße 36 -  53489 Sinzig
 - Tel: 02642-980330 - Fax: 02642-980215
 - Internet: http://www.pixelhouse.de
-----------------------------------------------------------------

>-----Original Message-----
>From: php-admin_(at)_infosoc.uni-koeln.de
>[mailto:php-admin_(at)_infosoc.uni-koeln.de]On Behalf Of gstammw
>Sent: Dienstag, 25. Mai 1999 21:39
>To: php_(at)_solix.wiso.Uni-Koeln.DE
>Subject: Re: [php] Dauer von SQL-Abfragen
>
>
>Hi Alexander !!
>
>Vielen Dank nochmals für Deinen Tip.
>Wie kann ich die berechnung in SEKUNDEN vornehmen ?
>
>cu then
>
>-----Ursprüngliche Nachricht-----
>Von: Alexander Meis <alexander_(at)_pixelhouse.de>
>An: php_(at)_solix.wiso.uni-koeln.de <php_(at)_solix.wiso.uni-koeln.de>
>Datum: Samstag, 22. Mai 1999 15:05
>Betreff: RE: [php] Dauer von SQL-Abfragen
>
>
>>hi....
>>
>>hier haste ne stopuhr mit der du das messen kannst...
>>
>>DAs ma anfang der seite einbinden....
>>
>><?php
>>
>>$time_memo = 0;
>>settype($time_memo,  "double");
>>
>>function micro_timer()
>> {$tm_1 = microtime( "H:i:s", time());
>> $tm_2 = explode( " ", $tm_1);
>> $tm_3 = explode( ".", $tm_2[0]);
>> return doubleval($tm_2[1]. ".".$tm_3[1]);
>> }
>>
>>function stoppuhr_on()
>> {global $time_memo;
>> $time_memo = micro_timer();
>> return;
>> }
>>
>>function stoppuhr_off()
>> {global $time_memo;
>> $milli_sec = (1000 * (micro_timer() - $time_memo)). "000";
>> $tm_len = strpos($milli_sec,  ".") + 4;
>> return substr($milli_sec, 0, $tm_len). "&nbsp;ms";
>> }
>>
>>?>
>>
>>
>>ab da wo gemessen werden soll
>>stoppuhr_on();
>>
>>wenn die uhr angehalten werden soll
>>$suchzeit = stoppuhr_off();
>>
>>die suchdauer haste dann in $suchzeit stehen und kannst sie beliebig
>>ausgeben..
>>
>>Beste Grüße aus Sinzig,
>>
>>Alexander Meis
>>pixelhouse media service
>>
>>----------------------------------------------------------------
>> - Barbarossastraße 36 -  53489 Sinzig
>> - Tel: 02642-980330 - Fax: 02642-980215
>> - Internet: http://www.pixelhouse.de
>>-----------------------------------------------------------------
>>
>>>-----Original Message-----
>>>From: php-admin_(at)_infosoc.uni-koeln.de
>>>[mailto:php-admin_(at)_infosoc.uni-koeln.de]On Behalf Of gstammw
>>>Sent: Freitag, 21. Mai 1999 21:04
>>>To: php_(at)_solix.wiso.Uni-Koeln.DE
>>>Subject: [php] Dauer von SQL-Abfragen
>>>
>>>
>>>Hallo Leute !!!
>>>
>>>Wie kann ich denn die Zeit, die eine SQL-Abfrage auf dem Server mittels
>>>php/mysql benötigt hat in einer Webpage ausgeben ?
>>>
>>>Thx,
>>>gunther stammwitz
>>>
>>>
>>>
>>>--
>>>Web-Seite: http://infosoc.uni-koeln.de/php/
>>>Listenadresse: php_(at)_infosoc.uni-koeln.de
>>>http://infosoc.uni-koeln.de/mailman/listinfo/php
>>>
>>
>>
>>--
>>Web-Seite: http://infosoc.uni-koeln.de/php/
>>Listenadresse: php_(at)_infosoc.uni-koeln.de
>>http://infosoc.uni-koeln.de/mailman/listinfo/php
>>
>
>
>--
>Web-Seite: http://infosoc.uni-koeln.de/php/
>Listenadresse: php_(at)_infosoc.uni-koeln.de
>http://infosoc.uni-koeln.de/mailman/listinfo/php
>


Home | Main Index | Thread Index

php::bar PHP Wiki   -   Listenarchive