Execution time of a Script - Php

ScriptExecutionTime

Snippet Code


  
Rate this page :
  [ 0 votes]

This code is used to find the execution time of a script

<?php $time_start = microtime(true); // Place your PHP/HTML/JavaScript/CSS/Etc. Here $time_end = microtime(true); $time = $time_end - $time_start; echo 'Script took '.$time.' seconds to exicute'; ?>

Tags


Ask Questions

Ask Question