Login   Register  
PHP Classes
elePHPant
Icontem

File: Example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Enrique Domínguez  >  phpCheckTime  >  Example  >  Download  
File: Example
Role: Example script
Content type: text/plain
Description: Example file that demonstrates how to use this utility
Class: phpCheckTime
Measure the time a script takes to run
Author: By
Last change:
Date: 10 years ago
Size: 757 bytes
 

Contents

Class file image Download
<?php
/*
 * Ejemplo para phpCheckTime.class.php
 */

include("phpCheckTime.class.php");

$object = new phpCheckTime;             // Creacion del objeto phpCheckTime

$object->start();      // start del cronometro...

?>
<html>
<head>
        <title>ejemplin de generacion de html</title>

</head>

<body>


<?php

echo "Primer tiempo:".$object->getTime()."<br>";        // primera toma de tiempos...



echo "<br>Tiempo parado...<br><br>";
$object->stop();

echo 
"Segundo tiempo:".$object->getTime()."<br>";        // segunda toma de tiempos...


echo "<br>Resume...<br><br>";
$object->resume();

echo 
"Tercer tiempo:".$object->getTime()."<br>";        // tercera toma de tiempos...

echo "<br>Parada final...<br><br>";
$object->stop();

?>
</body>
</html>