<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pcntl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.pcntl-alarm.php',
    1 => 'pcntl_alarm',
    2 => 'Set an alarm clock for delivery of a signal',
  ),
  'up' => 
  array (
    0 => 'ref.pcntl.php',
    1 => 'PCNTL Funzioni',
  ),
  'prev' => 
  array (
    0 => 'ref.pcntl.php',
    1 => 'PCNTL Funzioni',
  ),
  'next' => 
  array (
    0 => 'function.pcntl-async-signals.php',
    1 => 'pcntl_async_signals',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pcntl/functions/pcntl-alarm.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pcntl-alarm" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pcntl_alarm</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">pcntl_alarm</span> &mdash; <span class="dc-title">Set an alarm clock for delivery of a signal</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.pcntl-alarm-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pcntl_alarm</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$seconds</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Creates a timer that will send a <strong><code><a href="pcntl.constants.php#constant.sigalrm">SIGALRM</a></code></strong> signal to
   the process after the given number of seconds.
   Any call to <span class="function"><strong>pcntl_alarm()</strong></span> will cancel any previously
   set alarm.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pcntl-alarm-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">seconds</code></dt>
     <dd>
      <p class="para">
       The number of seconds to wait. If <code class="parameter">seconds</code> is
       zero, no new alarm is created.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pcntl-alarm-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Returns the time in seconds that any previously scheduled alarm had
   remaining before it was to be delivered, or <code class="literal">0</code> if there
   was no previously scheduled alarm.
  </p>
 </div>


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