MAPG-184 measure runtime and show in web output
This commit is contained in:
3 files changed
+6
No files matched your search
@@ -9,6 +9,8 @@ class JsonContent extends ContentBase
|
||||
|
||||
public function &render(): string
|
||||
{
|
||||
$this->data['__debug__runtime'] = round((hrtime(true) - SCRIPT_STARTED) / 1e+6, 1);
|
||||
|
||||
$content = json_encode($this->data);
|
||||
|
||||
return $content;
|
||||
|
||||
Reference in new issue
Block a user