当前位置: 首页>>代码示例>>PHP>>正文


PHP Context::getLoadTime方法代码示例

本文整理汇总了PHP中thebuggenie\core\framework\Context::getLoadTime方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::getLoadTime方法的具体用法?PHP Context::getLoadTime怎么用?PHP Context::getLoadTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在thebuggenie\core\framework\Context的用法示例。


在下文中一共展示了Context::getLoadTime方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: make_url

echo make_url('userdata');
?>
', autocompleter_url: '<?php 
echo \thebuggenie\core\framework\Context::isProjectContext() ? make_url('project_quicksearch', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey())) : make_url('quicksearch');
?>
'})};
                    <?php 
if (\thebuggenie\core\framework\Context::isDebugMode()) {
    ?>
                        TBG.debug = true;
                        TBG.debugUrl = '<?php 
    echo make_url('debugger', array('debug_id' => '___debugid___'));
    ?>
';
                        <?php 
    $load_time = \thebuggenie\core\framework\Context::getLoadTime();
    $load_time = $load_time >= 1 ? round($load_time, 2) . 's' : round($load_time * 1000, 1) . 'ms';
    ?>
                        TBG.Core.AjaxCalls.push({location: 'Page loaded', time: new Date(), debug_id: '<?php 
    echo \thebuggenie\core\framework\Context::getDebugID();
    ?>
', loadtime: '<?php 
    echo $load_time;
    ?>
'});
                        TBG.loadDebugInfo('<?php 
    echo \thebuggenie\core\framework\Context::getDebugID();
    ?>
', f_init);
                    <?php 
} else {
开发者ID:ellipsonic,项目名称:thebuggenige_app,代码行数:31,代码来源:layout.php


注:本文中的thebuggenie\core\framework\Context::getLoadTime方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。