Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2008-09-15 07:23
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);