PHP Classes

File: example.phpbuildtime.php

Recommend this page to a friend!
  Classes of Georg Gasseling   phpBuildTime   example.phpbuildtime.php   Download  
File: example.phpbuildtime.php
Role: Example script
Content type: text/plain
Description: example script for phpbuildtime.class
Class: phpBuildTime
Time measurement of on the php side
Author: By
Last change:
Date: 21 years ago
Size: 566 bytes
 

Contents

Class file image Download
<?php
/*
 * Example for phpbuildtime.class.php
 */

include("phpbuildtime.class.php");

$object = new phpBuildTime; // make an object of phpbuildtime class

$start_time = $object->GET_TIME(); // take the first time

?>
<html>
<head>
        <title>example.phpbuildtime.class.php</title>

</head>

<body>


<?php

$end_time
= $object->GET_TIME(); // take the second time

echo $time_diff = round($diff_time = $object->DIFF_TIME($start_time, $end_time),4); // determine the difference of time

?>
</body>
</html>