jmoore Sun Feb 4 08:56:59 2001 EDT Added files: /php4/ext/standard/tests/time .cvsignore 001.phpt Log: Adding microtime() tests Index: php4/ext/standard/tests/time/.cvsignore +++ php4/ext/standard/tests/time/.cvsignore *.exp *.out *.php phpt.* Index: php4/ext/standard/tests/time/001.phpt +++ php4/ext/standard/tests/time/001.phpt --TEST-- microtime() function --POST-- --GET-- --FILE-- <?php $passed = 0; $failed = 0; for ($i=1;$i<=100000;$i++) { list($micro,$time)=explode(" ",microtime()); $add=$micro+$time; $add<$last ? $failed++: $passed++; $last=$add; } echo "Passed: ".$passed."\n"; echo "Failed: ".$failed."\n"; ?> --EXPECT-- Passed: 100000 Failed: 0 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]