forked from wikimedia/mediawiki-php-excimer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.php
28 lines (25 loc) · 771 Bytes
/
globals.php
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 ) {
}