Posted by Sam Yong on Mon 12 Oct 02:36
report abuse | download | new post
- <?php
- function microtime_float(){
- return ((float)$usec + (float)$sec);
- }
- $file = 'favicon.ico';
- $u = 100;
- $time_start = microtime_float();
- while($u-- > 0){
- }
- $time_end = microtime_float();
- $loadedin = (float)($time_end - $time_start);
- $u = 100;
- $time_start = microtime_float();
- while($u-- > 0){
- if($fh){
- }
- }
- }
- $time_end = microtime_float();
- $loadedin = (float)($time_end - $time_start);
- ?>
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.