Created
July 4, 2014 10:49
-
-
Save picasso250/1cf474f262d0d2ee4db3 to your computer and use it in GitHub Desktop.
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 | |
$g_start_time = microtime(true); | |
register_shutdown_function(function () { | |
global $g_start_time; | |
$g_start_time = microtime(true) - $g_start_time; | |
UB_LOG_TRACE('%s (time %s ms)', $_SERVER['REQUEST_URI'], intval($g_start_time*1000)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment