Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bruce Torres Alvarado  >  Cronometro  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: sample
Class: Cronometro
Measure the time that passed between two moments
Author: By
Last change:
Date: 2004-10-08 13:14
Size: 382 bytes
 

Contents

Class file image Download
<?php

    
include("cronometro.php");
    
        
    
/* Creating object*/
    
$cron = new cronometro();
    
    
/* Emulating any */
    
for ($i=0$i<90000$i++){
        
$j=0;
    }        
    
    
/* Setting the message*/
    
$cron->setMsg("Esta pagina se cargo en : %s segundos");
    
    
/* Setting the decimal */
    
$cron->setDec(7);
    
    
/* Show result*/
    
$cron->show();
    
    
/* Finish sample */

?>