public function stop() { $this->tick(); $this->end_time = microtime(true); unregister_tick_function(array($this, "tick")); }