/** * Stops and flushes all timers */ public function flush() { if ($this->worksWithoutPinba && $this->getClientUsed() === self::CLIENT_NONE) { return; } pinba_timers_stop(); pinba_flush(); }
/** * Stops all running timers. * * @return bool */ public static function stopAll() { if (!self::isEnabled()) { return; } return pinba_timers_stop(); }