mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Remove all use of global variables as debug timers
This commit is contained in:
parent
f91bd86fb1
commit
23190bd2f5
5 changed files with 17 additions and 24 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue