PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Leandro Lucarella   Timer   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example php file with simple use.
Class: Timer
Timer class
Author: By
Last change:
Date: 21 years ago
Size: 352 bytes


Class file image Download
require_once "Timer.php";
$timer = new Timer();
    <TITLE>Test Page (elapsed time: <?= $timer->elapsed() ?> seconds)</TITLE>
    This is a simple test page.
    Elapsed time: <?= $timer->elapsed() ?> seconds.
<!-- Final elapsed time: <?= $timer->elapsed() ?> seconds. -->