X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=tests%2Ftime%2Ftime003.phpt;fp=tests%2Ftime%2Ftime003.phpt;h=1fe5073b676ce7c55fe50cbf99fd74ccf6f578da;hp=0000000000000000000000000000000000000000;hb=7474b3e23338ea03bcd65551959e2582cc455f9f;hpb=9c71742e3aa27507196cf34daa9eeecde8545a40 diff --git a/tests/time/time003.phpt b/tests/time/time003.phpt new file mode 100644 index 0000000..1fe5073 --- /dev/null +++ b/tests/time/time003.phpt @@ -0,0 +1,44 @@ +--TEST-- +nanosleep +--SKIPIF-- + +--ENV-- +TZ=UTC +--INI-- +psi.directory = {PWD} +--FILE-- +===TEST=== + 10000000], $rm), $rm); +var_dump(psi\gettimeofday($tv2), $tv2); +var_dump($tv2["tv_usec"]-$tv1["tv_usec"]); +?> +===DONE=== +--EXPECTF-- +===TEST=== +int(0) +array(2) { + ["tv_sec"]=> + int(1%d) + ["tv_usec"]=> + int(%d) +} +int(0) +array(2) { + ["tv_sec"]=> + int(0) + ["tv_nsec"]=> + int(0) +} +int(0) +array(2) { + ["tv_sec"]=> + int(%d) + ["tv_usec"]=> + int(%d) +} +int(10%r\d\d\d%r) +===DONE===