<?php
require_once('class.timeStamps.php');
// create timestamp object
$ts = new timeStamps('my block1');
// code ...
// code ...
// code ...
// add timestamp
$ts->addTime('my block2');
// code ...
// code ...
// code ...
// add timestamp
$ts->addTime('end of blocks');
// print time of execution
echo 'page generated by:'.$ts->getTimesArraySize();
// TABLE of Timestamps (DEBUG mode)
$ts->printTimesTable();
?>
|