Arquivos
hhvm/hphp/test/slow/ext_redis/time.php
T
Sara Golemon 2811e9da94 Implement Redis extension
PHP implementation of Redis
2013-06-25 13:19:10 -07:00

13 linhas
268 B
PHP

<?php
include (__DIR__ . '/redis.inc');
$r = NewRedisTestInstance();
$tm = $r->time();
var_dump(count($tm));
$tm = $tm[0] + ($tm[1] / 1000000);
$now = microtime(true);
$delta = abs($now - $tm);
// Server should be within five seconds of client
var_dump($delta < 5);