本文整理匯總了PHP中misc::microTime方法的典型用法代碼示例。如果您正苦於以下問題:PHP misc::microTime方法的具體用法?PHP misc::microTime怎麽用?PHP misc::microTime使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類misc
的用法示例。
在下文中一共展示了misc::microTime方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: db
<?php
require 'class/db_mysqli.class.php';
require 'class/misc.class.php';
require 'class/blacklist.class.php';
require 'class/activation.class.php';
require 'class/user.class.php';
require 'class/message.class.php';
require 'class/node.class.php';
require 'class/grid.class.php';
require 'class/alliance.class.php';
if ($benchmark) {
$startTime = misc::microTime();
}
$db = new db();
$db->create($dbHost, $dbUser, $dbPass, $dbName, $dbPcon);
示例2: ceil
</div>
<?php
if (isset($_SESSION[$shortTitle . 'User']['level']) && $_SESSION[$shortTitle . 'User']['level'] >= 3) {
$adminPanel = ' | <a class="small" href="' . $location . 'admin.php">' . $ui['adminPanel'] . '</a>';
} else {
$adminPanel = '';
}
echo '<div class="footer">devana created by Andrei Busuioc<br />Modded & Chinese Version 0.00a By Satsuki Rin<br /><a class="small" href="devanapedia.php?action=list&view=modules&faction=0">' . $ui['devanapedia'] . '</a> | <a class="small" href="simulator.php">' . $ui['combatSimulator'] . '</a> | <a class="small" href="' . $location . 'terms.php">' . $ui['terms'] . '</a> | <a class="small" href="' . $location . 'credits.php">' . $ui['credits'] . '</a> | <a class="small" href="' . $location . 'contact.php">' . $ui['contact'] . '</a>' . $adminPanel . '</div>';
if ($benchmark) {
$endTime = misc::microTime();
echo '<div class="benchmark">' . ceil(($endTime - $startTime) * 1000) . ' ' . $ui['ms'] . '</div>';
echo '<div class="benchmark">' . $db->qrynum . ' queries</div>';
}
?>
</div>