File: globals.php

package info (click to toggle)
php-excimer 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 348 kB
  • sloc: ansic: 2,513; xml: 233; php: 82; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 771 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

/** Real (wall-clock) time */
define( 'EXCIMER_REAL', 0 );

/** CPU time (user and system) consumed by the thread during execution */
define( 'EXCIMER_CPU', 1 );

/**
 * Abbreviated interface for starting a wall-clock timer. Equivalent to:
 *
 *   $timer = new ExcimerTimer;
 *   $timer->setCallback( $callback );
 *   $timer->setInterval( $interval );
 *   $timer->start();
 *   return $timer;
 *
 * Note that you must keep a copy of the return value. If it goes out of scope,
 * the object will be destroyed and the timer will stop.
 *
 * If the callback is not callable, a warning is raised and null is returned.
 *
 * @param callable $callback
 * @param float $interval
 * @return ExcimerTimer|null
 */
function excimer_set_timeout( $callback, $interval ) {
}