<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.luasandbox.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'luasandbox.getcpuusage.php',
    1 => 'LuaSandbox::getCPUUsage',
    2 => 'Fetch the current CPU time usage of the Lua environment',
  ),
  'up' => 
  array (
    0 => 'class.luasandbox.php',
    1 => 'LuaSandbox',
  ),
  'prev' => 
  array (
    0 => 'luasandbox.enableprofiler.php',
    1 => 'LuaSandbox::enableProfiler',
  ),
  'next' => 
  array (
    0 => 'luasandbox.getmemoryusage.php',
    1 => 'LuaSandbox::getMemoryUsage',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/luasandbox/luasandbox/getcpuusage.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="luasandbox.getcpuusage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">LuaSandbox::getCPUUsage</h1>
  <p class="verinfo">(PECL luasandbox &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">LuaSandbox::getCPUUsage</span> &mdash; <span class="dc-title">Fetch the current CPU time usage of the Lua environment</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-luasandbox.getcpuusage-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>LuaSandbox::getCPUUsage</strong></span>(): <span class="type"><a href="language.types.float.php" class="type float">float</a></span></div>

  <p class="para rdfs-comment">
   Fetches the current CPU time usage of the Lua environment.
  </p>
  <p class="para">
   This includes time spent in PHP callbacks.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-luasandbox.getcpuusage-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-luasandbox.getcpuusage-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   Returns the current CPU time usage in seconds.
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    On Windows, this function always returns zero. On operating systems that do
    not support <strong><code>CLOCK_THREAD_CPUTIME_ID</code></strong>, such as FreeBSD
    and Mac OS X, this function will return the elapsed wall-clock time, not
    CPU time.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-luasandbox.getcpuusage-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="luasandbox.getmemoryusage.php" class="methodname" rel="rdfs-seeAlso">LuaSandbox::getMemoryUsage()</a> - Fetch the current memory usage of the Lua environment</span></li>
    <li><span class="methodname"><a href="luasandbox.getpeakmemoryusage.php" class="methodname" rel="rdfs-seeAlso">LuaSandbox::getPeakMemoryUsage()</a> - Fetch the peak memory usage of the Lua environment</span></li>
    <li><span class="methodname"><a href="luasandbox.setcpulimit.php" class="methodname" rel="rdfs-seeAlso">LuaSandbox::setCPULimit()</a> - Set the CPU time limit for the Lua environment</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>