Your IP : 172.28.240.42


Current Path : /var/www/html/clients/nkpgkx11.e-nk.ru/bitrix/modules/main/lib/diag/
Upload File :
Current File : /var/www/html/clients/nkpgkx11.e-nk.ru/bitrix/modules/main/lib/diag/sqltracker.php

<?php
namespace Bitrix\Main\Diag;

class SqlTracker
{
	/**
	 * @var SqlTrackerQuery[]
	 */
	protected $arQuery = array();

	protected $time;

	public function reset()
	{
		$this->arQuery = array();
		$this->time = 0;
	}

	public function getNewTrackerQuery()
	{
		$query = new SqlTrackerQuery($this);
		$this->arQuery[] = $query;
		return $query;
	}

	public function addTime($time)
	{
		$this->time += $time;
	}

}