Login   Register  
PHP Classes
elePHPant
Icontem

File: script_time.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of José Augusto Ferreira Franco  >  Processing  >  script_time.php  >  Download  
File: script_time.php
Role: Example script
Content type: text/plain
Description: Shot example of to use this class
Class: Processing
Measure the time that a script takes to execute
Author: By
Last change: CREDITS
Date: 2008-02-01 18:46
Size: 954 bytes
 

Contents

Class file image Download
<?php
/*******************************************************************************
     Package : Processing - An simple way to display  processing  code time
     File :example file script
     Author: José Augusto Ferreira Franco
     Nick name : Guto Ferreira
     Web : www.revista-php.net
     Build date: 27- January 2008
     Version : 1.0
     Lisence : Artist License (means you must leave this header always) 
    ********************************************************************************/
require_once("processing.class.php");

// TOP OF THE PAGE

$Time = new Processing(); // instance to class processing
$start $Time->Start_Time(); // inits time

?>


<?php

ADD ALL YOUR PHP 
AND HTML RIGHT CODE HERE IN THE MIDDLE
?>


<?php
                
// END OF THE PAGE

// CALCULATES ALL TIME PROCESSING AND PRINTS IT ON THE WEB PAGE
$end   $Time->End_Time();
$total $Time->Total_Time($start,$end);
$Time->show_msg($total);
?>