Log the execution time

This commit is contained in:
Michael 2022-05-17 20:47:23 +00:00
parent 6eb70bea16
commit 4016a576d5
27 changed files with 67 additions and 6 deletions

View file

@ -43,6 +43,7 @@ class Oembed extends BaseModule
if (DI::args()->getArgv()[1] == 'b2h') {
$url = ["", trim(hex2bin($_REQUEST['url']))];
echo Content\OEmbed::replaceCallback($url);
DI::page()->logRuntime();
exit();
}
@ -50,6 +51,7 @@ class Oembed extends BaseModule
if (DI::args()->getArgv()[1] == 'h2b') {
$text = trim(hex2bin($_REQUEST['text']));
echo Content\OEmbed::HTML2BBCode($text);
DI::page()->logRuntime();
exit();
}
@ -68,6 +70,7 @@ class Oembed extends BaseModule
echo $j->html;
echo '</body></html>';
}
DI::page()->logRuntime();
exit();
}
}