コード例 #1
0
ファイル: Gauge.php プロジェクト: tuupola/instrument
 public function __construct($options = [])
 {
     $id = ftok(__FILE__, "i");
     $memory = new SharedMemory($id);
     $this->setMemory($memory);
     if (!$this->memory->exists($id)) {
         $this->memory->write(json_encode([]));
     }
     parent::__construct($options);
 }
コード例 #2
0
ファイル: Timing.php プロジェクト: tuupola/instrument
 public function __construct($options = [])
 {
     $this->stopwatch = new Stopwatch();
     parent::__construct($options);
 }