Skip to content

Instantly share code, notes, and snippets.

@miteshmap
Last active January 30, 2020 05:56
Show Gist options
  • Select an option

  • Save miteshmap/7efec43a9ac0d3ef725f163149a3f5a3 to your computer and use it in GitHub Desktop.

Select an option

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