<?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>
|