mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
15 lines
388 B
PHP
15 lines
388 B
PHP
--TEST--
|
|
time_nanosleep — Delay for a number of seconds and nanoseconds
|
|
--SKIPIF--
|
|
<?php if (!function_exists('time_nanosleep')) die("skip"); ?>
|
|
--CREDITS--
|
|
Àlex Corretgé - alex@corretge.cat
|
|
--FILE--
|
|
<?php
|
|
|
|
$nano = time_nanosleep(0, 1000000000);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: time_nanosleep(): nanoseconds was not in the range 0 to 999 999 999 or seconds was negative in %s.php on line %d
|