PHP Execution Time Script

Simple php script helps you to measure the execution time of the current page.

Features

  • Php timer script shows the loading time of the current page and displays in seconds.
  • Simple online script that allows the visitors to know the loading time of the current page and grabs their attraction.
  • It can also be used for debugging and testing of web pages.
  • Highly responsive and easy to use.

Preview

Execution time of current page is : 1.0E-5 seconds.
©H

Downloads


<?php
$tz_object = new DateTimeZone('Asia/Kolkata');
$datetime = new DateTime();
$datetime->setTimezone($tz_object);
$yt= $datetime->format('Y');
$mt= $datetime->format('m');
$dt= $datetime->format('d');
$hours= $datetime->format('H');
$minutes= $datetime->format('i');
$seconds= $datetime->format('s');
function timer()
{
$time = explode(' ', microtime());
return $time[0]+$time[1];
}
$beginning = timer();
?>
<title>PHP Timer Script</title>
<div align='center'>
<b>PHP Timer Script</b><br><br>
<div id='pagetime'>
<b>Execution time of current page is : </b><font style='color:green;font-weight:bold;'><?php echo round(timer()-$beginning,6); ?> seconds.</font><br>
</div>
<div id='strclock'></div>
</div>
<style>
body {
background: #fff none repeat scroll 0 0;
font: 0.81em/150% Tahoma,Geneva,sans-serif;
}
</style>
<br><br>
<div id="dumdiv" align="center" style="font-size: 10px; color: #dadada;">
<a id="dum" style="text-decoration:none; color: #dadada;" href="https://www.hscripts.com">&copy;H</a>
</div>
  • Release Date - 10-12-2015
  • Get free version without ©copyright link for just $10/-
  • For customization of this script or any script development, mail to support@hscripts.com

Usage

  • Copy and paste the above code in your web page.
  • Here, the function microtime() is used to display the execution time.
  • The php script is used to display the execution time for your webpage.

License

Related Scripts

Free Php Scripts


Ask Questions

Ask Question