コード例 #1
0
ファイル: Time.php プロジェクト: jthurteau/saf
 public static function set($seconds, $micro = 0)
 {
     $now = microtime(TRUE);
     $new = $seconds + $micro / 1000;
     $offset = $new - $now;
     self::$_diff = floor($offset);
     self::$_microDiff = $offset * 1000 % 1000;
 }