• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/internals/countercalculation.php
  • Класс: Bitrix\Sender\Internals\CounterCalculation
  • Вызов: CounterCalculation::isTimeUp
static function isTimeUp()
{
	if(self::$startTime === null)
	{
		self::$startTime = getmicrotime();
	}

	if(self::$maxExecutionTime > 0 && (getmicrotime() - self::$startTime) > self::$maxExecutionTime)
	{
		return true;
	}
	else
	{
		return false;
	}
}