PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of netmaniac   TX class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: TX class
Measure the time it takes to a execute a task
Author: By
Last change: no
Date: 20 years ago
Size: 319 bytes
 

Contents

Class file image Download
<?php
// and the EXAMPLE :
include "tx.class.php";
$timer=new TX;
echo
"echo() function: ";
$timer->start();
echo
"Time: ";
$timer->stop();
echo
$timer->get_time()." seconds";
echo
"<br>";
echo
"print() function: ";
$timer->start();
print
"Time: ";
$timer->stop();
print
$timer->get_time()." seconds";
?>