PHP Classes

File: example/index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Benchmark Timer Class   example/index.php   Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Benchmark Timer Class
Measure the time that passed within a code section
Author: By
Last change:
Date: 5 years ago
Size: 227 bytes
 

Contents

Class file image Download
<?php

require_once '../vendor/autoloader.php';

$bench = new Lablnet\Benchmark();

$bench->start();
$x = 1;
while (
$x <= 100) {
    echo
"hay i'm $x<br>";
   
$x++;
}
$bench->end();
echo
"elapse time {$bench->elapsedTime()}";