Record resolver execution time.

@param  \GraphQL\Type\Definition\ResolveInfo  $resolveInfo
@param  float|int  $start
@param  float|int  $end
@return void
766883
public function record(ResolveInfo $resolveInfo, $start, $end): void
    {
        $this->resolverTraces [] = [
            'path' => $resolveInfo->path,
            'parentType' => $resolveInfo->parentType->name,
            'returnType' => $resolveInfo->returnType->__toString(),
            'fieldName' => $resolveInfo->fieldName,
            'startOffset' => $this->diffTimeInNanoseconds($this->requestStartPrecise, $start),
            'duration' => $this->diffTimeInNanoseconds($start, $end),
        ];
    }
400965
public function setTimeFrame($begin, $end)
    {
        $t = $this->getNewsModelAdapter()->getTable();

        $this->columns[] = "$t.date>=? AND $t.date<=?";
        $this->values[] = $begin;
        $this->values[] = $end;
    }
163594
public function timeEnd($name = null): void
    {
        $timer = $name instanceof TimerContract ? $name : $this->resolveTimerFromName($name);

        $timer->end();
    }
573364
private function configureStartControlProperties(OptionsResolver $resolver)
    {
        $resolver->setDefined('autostart');
        $this->configureBooleanProperty('autostart', $resolver);


        $resolver
            ->setDefined('autorestart')
            ->setAllowedTypes('autorestart', ['bool', 'string'])
            ->setAllowedValues('autorestart', [true, false, 'true', 'false', 'unexpected'])
            ->setNormalizer('autorestart', function (Options $options, $value) {
                return (is_bool($value) or $value === 'unexpected') ? $value : ($value === 'true' ? true : false);
            });

        $resolver->setDefined('startsecs');
        $this->configureIntegerProperty('startsecs', $resolver);

        $resolver->setDefined('startretries');
        $this->configureIntegerProperty('startretries', $resolver);
    }
453886
protected function prepareWhereBetween($field, $start, $end, $cacheKey)
    {
        $this->builderCache->store($cacheKey, [
            $field => [
                'start' => $start,
                'end'   => $end,
            ],
        ]);
    }
785513
@Override
    public void setEntityResolver(EntityResolver resolver) {
        if (resolver instanceof EntityResolver2) {
            resolver2 = (EntityResolver2) resolver;
        } else {
            resolver2 = null;
        }
        if (resolver == null) {
            resolver = base;
        }
        entityResolver = resolver;
    }
148168
protected function getVisitsFilteredByDateRange(Carbon $start, Carbon $end)
    {
        return $this->getCachedVisits()->filter(function (VisitorActivity $visit) use ($start, $end) {
            return $visit->created_at->between($start, $end);
        });
    }
297618
public function setResolutionRequestInfo(\AgentSIB\Diadoc\Api\Proto\Events\ResolutionRequestInfo $value = null)
    {
        $this->ResolutionRequestInfo = $value;
    }
1140481
public function setLocation(Coordinate $start, Coordinate $end)
    {
        return $this->setStart($start)->setEnd($end);
    }
1278855
static public function elapsed($start, $end) {
        return [
                'time_elapsed' => self::elapsedTime($start, $end),
                'memory_usage_gap' => self::elapsedMemory($start, $end),
                'real_memory_usage' => self::elapsedMemory($start, $end, true)
            ];
    }
1015609
private function process()
    {
        if (empty($this->params)) {
            throw new ResolutionException('Parameters were not given');
        }
        $mode = $this->getMode();

        switch ($mode) {
            case 'list':
                $this->listAction();
                break;
            case 'compile':
                $this->compileAction();
                break;
        }
    }
683917
private function processArgumentResolverFactories($container)
    {
        $references = $this->processor->findAndSortTaggedServices($container, self::SUITE_SCOPED_RESOLVER_FACTORY_TAG);
        $definition = $container->getDefinition(self::AGGREGATE_RESOLVER_FACTORY_ID);

        foreach ($references as $reference) {
            $definition->addMethodCall('registerFactory', array($reference));
        }
    }
118218
private function configureProcessProperties(OptionsResolver $resolver)
    {
        $resolver
            ->setRequired('command')
            ->setAllowedTypes('command', 'string');

        $resolver
            ->setDefined('process_name')
            ->setAllowedTypes('process_name', 'string');

        $resolver->setDefined('numprocs')
            ->setAllowedTypes('numprocs', 'int');

        $resolver->setDefined('numprocs_start')
            ->setAllowedTypes('numprocs_start', 'int');

        $resolver->setDefined('priority')
            ->setAllowedTypes('priority', 'int');
    }
877678
private function fixMuchLinesAfterDescription(int $startLine, int $endLine): void
    {
        $this->file->getFixer()->beginChangeset();

        (new LineHelper($this->file))->removeLines($startLine, $endLine);

        $this->file->getFixer()->endChangeset();
    }
369840
public function diff($start, $end, $level = 'MB')
    {
        $startPoint = $this->getPoint($start);
        $endPoint   = $this->getPoint($end);

        return [
            'time'   => $endPoint['time'] - $startPoint['time'],
            'memory' => ($endPoint['memory'] - $startPoint['memory']) / pow(1024, (int) array_search($level, $this->memoryLevel))
        ];
    }
437926
protected function query_start($sql, array $params=null, $type, $extrainfo=null) {
        parent::query_start($sql, $params, $type, $extrainfo);
        // pgsql driver tents to send debug to output, we do not need that ;-)
        $this->last_error_reporting = error_reporting(0);
    }
800559
public function setCommonResolver($resolver)
    {
        if (!$resolver instanceof EventResolverInterface) {
            $this->commonResolver = $this->handleException(new InvalidServiceException(
                'Resolver Service must implement'.EventResolverInterface::class
            ));

            return;
        }

        $this->commonResolver = $resolver;
    }