phpUserTrack
[ class tree: phpUserTrack ] [ index: phpUserTrack ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. ?>
  3.  
  4. <!DOCTYPE HTML SYSTEM>
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
  8. <title>Benchmark</title>
  9. </head>
  10. <body>
  11.  
  12. <?php
  13. function getmicrotime() {
  14.     list($usec, $sec) = explode(" ",microtime());
  15.     return ((float)$usec + (float)$sec);
  16. }
  17.  
  18. $time = getmicrotime();
  19.  
  20. echo '<strong>Benchmarking index.php</strong>';
  21. for ($i = 0; $i <= 1; $i++) {
  22.     exec('php ' . dirname(__FILE__) . '/../index.php', $output);
  23.     echo '.';
  24.     ob_flush();
  25. }
  26.  
  27. $renderTime = getmicrotime() - $time;
  28. echo $renderTime;
  29.  
  30. ?>
  31.  
  32. </body>
  33. </html>

Documentation generated on Tue, 06 Nov 2007 09:21:54 -0800 by phpDocumentor 1.4.0a2