Created
July 12, 2019 14:42
-
-
Save sta1r/9c4f2876e9a21e78e24f460241e8e5e7 to your computer and use it in GitHub Desktop.
Timed script execution
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
// Start of code block to be timed | |
$start = microtime(true); | |
// End of timed section | |
$time_elapsed_secs = microtime(true) - $start; | |
Mage::helper('ddg')->log($time_elapsed_secs); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment