note 55894 added to ref.datetime

From: Date: Tue, 16 Aug 2005 18:47:58 +0000
Subject: note 55894 added to ref.datetime
Groups: php.notes 
Request: Send a blank email to php-notes+get-93763@lists.php.net to get a copy of this message
Don't remember why i wrote this, but in case someone needs it... <? /*********************************************************** * Funny benchmark * Calculating "PI" for 29sec * * Author: Vladson <vladson@pc-labs.info> * Web-site: http://vladson.pc-labs.info/ ***********************************************************/ header('Content-type: text/plain; charset=iso-8859-1'); $a = 3; for ($i=0; $i<30; $i++) { $time = time()+1; while ( $time <> time() ) { $b += ( 1 / $a ) - ( 1 / ( $a + 2 ) ); $a +=4; } echo 4*(1-$b) . "\n"; } echo $a; /**********************************************************/ ?> ---- Manual Page -- http://www.php.net/manual/en/ref.datetime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55894 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55894&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55894&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55894&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55894&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55894&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55894&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55894&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93763) next »