PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
  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: 11 years ago
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 */

?>