Skip to content

Instantly share code, notes, and snippets.

@miteshmap
Last active January 30, 2020 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miteshmap/7efec43a9ac0d3ef725f163149a3f5a3 to your computer and use it in GitHub Desktop.
Save miteshmap/7efec43a9ac0d3ef725f163149a3f5a3 to your computer and use it in GitHub Desktop.
calculate time to execute a script.
<?php
//Create a variable for start time
$time_start = microtime(true);
//Create a variable for end time
$time_end = microtime(true);
// total execution time.
$execution_time = ($time_end - $time_start) / 60;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment