PHP Classes

File: demo.timestamps.php

Recommend this page to a friend!
  Classes of runcore  >  Time to generate a page or blocks  >  demo.timestamps.php  >  Download  
File: demo.timestamps.php
Role: Example script
Content type: text/plain
Description: example of use timestamps class
Class: Time to generate a page or blocks
Measure the time that takes to execute a script
Author: By
Last change: fix: call undefined object
Date: 16 years ago
Size: 451 bytes


Class file image Download


// 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)


For more information send a message to info at phpclasses dot org.