Skip to main content
Home / Code Snippets / PHP / Count Script Excecution Time

Count Script Excecution Time

$execution_time = microtime(); // Start counting

// Your code

$execution_time = microtime() - $execution_time;
printf('It took %.5f sec', $execution_time);
icon-link icon-logo-star icon-search icon-star