We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP_TIMER requires php version gt 5.3.3 $_SERVER['REQUEST_TIME_FLOAT'] is available since php version 5.4.0
so, if SERVER['REQUEST_TIME_FLOAT'] is not available use SERVER['REQUEST_TIME']
The text was updated successfully, but these errors were encountered:
You mean like this
diff --git a/PHP/Timer.php b/PHP/Timer.php index 0056ea8..5f62445 100644 --- a/PHP/Timer.php +++ b/PHP/Timer.php @@ -143,6 +143,10 @@ public static function resourceUsage() PHP_Timer::$requestTime = $_SERVER['REQUEST_TIME_FLOAT']; } +else if (isset($_SERVER['REQUEST_TIME'])) { + PHP_Timer::$requestTime = $_SERVER['REQUEST_TIME']; +} + else { PHP_Timer::$requestTime = microtime(TRUE); }
Sorry, something went wrong.
make use of server request_time, which fixes #10
ee7a2af
No branches or pull requests
PHP_TIMER requires php version gt 5.3.3
$_SERVER['REQUEST_TIME_FLOAT'] is available since php version 5.4.0
so, if SERVER['REQUEST_TIME_FLOAT'] is not available use SERVER['REQUEST_TIME']
The text was updated successfully, but these errors were encountered: