PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Jeff Redding   TimeCheck   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: A simple example
Class: TimeCheck
Measure elapsed time and mark PHP execution events
Author: By
Last change:
Date: 20 years ago
Size: 303 bytes


Class file image Download
include "";

$tc = new TimeCheck();

$tc->begin("Starting timer...");

for (
$i=0; $i<10000; $i++)
$z = $i % 33;

$tc->mark("Loop1 Complete");


$tc->mark("Sleep Complete");

for (
$i=0; $i<10000; $i++)
$z = $i % 44;

$tc->mark("Loop2 Complete");