• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/util/process.php
  • Класс: BitrixSaleLocationUtilProcess
  • Вызов: Process::__construct
public function __construct($options = array())
{
	if (isset($options['INITIAL_TIME']))
		$this->time = (int)$options['INITIAL_TIME'];
	else
		$this->time = time();

	$this->useLock = (bool)($options['USE_LOCK'] ?? null);
	$this->options = $options;

	$this->restore();

	if (isset($options['STEP']) && $options['STEP'] == 0)
	{
		$this->reset();
	}

	$this->logMessage('#############################', false);
	$this->logMessage('HIT STARTED '.$this->getTimeStampString(), false);

	$timeLimit = (int)($options['TIME_LIMIT'] ?? 0);
	if ($timeLimit > 0)
	{
		$this->setTimeLimit($timeLimit);
	}

	$this->saveStartTime();
	$this->saveMemoryPeak();
}