File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function getResponse(): Response
32
32
return new Response (
33
33
code: is_int ($ responseCode ) ? $ responseCode : 200 ,
34
34
size: $ responseSize ,
35
- load_time: $ this ->getLoadTime (),
35
+ load_time: $ this ->getLoadTimeInMilliseconds (),
36
36
body: $ responseBody ,
37
37
headers: $ this ->getResponseHeaders (),
38
38
);
@@ -59,10 +59,10 @@ private function getResponseHeaders(): array
59
59
/**
60
60
* Calculate the execution time for the script.
61
61
*/
62
- private function getLoadTime (): float
62
+ private function getLoadTimeInMilliseconds (): float
63
63
{
64
64
if (isset ($ _SERVER ['REQUEST_TIME_FLOAT ' ])) {
65
- return (float ) microtime (true ) - $ _SERVER ['REQUEST_TIME_FLOAT ' ];
65
+ return (microtime (true ) * 1000 ) - (( float ) $ _SERVER ['REQUEST_TIME_FLOAT ' ] * 1000 ) ;
66
66
}
67
67
68
68
return 0.0000 ;
You can’t perform that action at this time.
0 commit comments