• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/timermanager.php
  • Класс: CTaskTimerManager
  • Вызов: CTaskTimerManager::getRunningTask
public function getRunningTask($bResetStaticCache = true)
{
	$arTimer = $this->getLastTimer($bResetStaticCache);

	if (
		($arTimer !== false)
		&& ($arTimer['TIMER_STARTED_AT'] > 0)
	)
	{
		// refresh run-time
		$arTimer['RUN_TIME'] = time() - $arTimer['TIMER_STARTED_AT'];
		return ($arTimer);
	}
	else
		return (false);
}