Remove all use of global variables as debug timers

This commit is contained in:
Kijin Sung 2025-08-20 00:34:57 +09:00
parent f91bd86fb1
commit 23190bd2f5
5 changed files with 17 additions and 24 deletions

View file

@ -730,11 +730,6 @@ class WidgetController extends Widget
// Debug widget creation time information added to the results
$elapsed_time = microtime(true) - $start;
if (!isset($GLOBALS['__widget_excute_elapsed__']))
{
$GLOBALS['__widget_excute_elapsed__'] = 0;
}
$GLOBALS['__widget_excute_elapsed__'] += $elapsed_time;
if (Rhymix\Framework\Debug::isEnabledForCurrentUser())
{
Rhymix\Framework\Debug::addWidget(array(