public function totalTimeAndMemory($pointStack)
    {
        $max_time = 0;
        $max_memory = 0;

        foreach (array_slice($pointStack, 2) as $point)
        {
            $max_time += $point->getDifferenceTime();
            $max_memory += $point->getDifferenceMemory();
        }

        return new CalculateTotalHolder($max_time, $max_memory, memory_get_peak_usage(true));
    }