Last active
January 30, 2020 05:56
-
-
Save miteshmap/7efec43a9ac0d3ef725f163149a3f5a3 to your computer and use it in GitHub Desktop.
calculate time to execute a script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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