PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Andrey Nikishaev   Little Timer   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Little Timer
Measure the time a script takes to execute
Author: By
Last change: add some
Date: 16 years ago
Size: 183 bytes
 

Contents

Class file image Download
<?php
include_once('timer.php');

Timer::set(1);

Timer::set(2);
/*

...Doing some operations

*/
echo "Time elapsed: ".Timer::get(1);
echo
"Time elapsed: ".Timer::get(2);