<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209014#M59428</link>
    <description>&lt;P&gt;ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the model below is intended to query an indexed and a nonindexed layer. I wanted to compare the time between these two cases. This is why I need a tool to measure the time to perform the “select by attribute” in these two cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clip_1193.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50227i8439394B533F7CFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clip_1193.jpg" alt="Clip_1193.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 04:59:07 GMT</pubDate>
    <dc:creator>JamalNUMAN</dc:creator>
    <dc:date>2022-09-02T04:59:07Z</dc:date>
    <item>
      <title>ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209014#M59428</link>
      <description>&lt;P&gt;ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the model below is intended to query an indexed and a nonindexed layer. I wanted to compare the time between these two cases. This is why I need a tool to measure the time to perform the “select by attribute” in these two cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clip_1193.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50227i8439394B533F7CFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clip_1193.jpg" alt="Clip_1193.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 04:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209014#M59428</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2022-09-02T04:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209042#M59435</link>
      <description>&lt;P&gt;Timing is best done in python.&amp;nbsp; It needs to be scripted with calls to collect time information and the actual tool being used.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance the code samples for a tool show the required syntax to perform a select by attribute&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-attribute.htm" target="_blank"&gt;Select Layer By Attribute (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to collect time you throw what you need between the time collecting code&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/7370801/how-do-i-measure-elapsed-time-in-python" target="_blank"&gt;performance - How do I measure elapsed time in Python? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;provides a simple example of the concept&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import time

start = time.time()
# -- amazing things section
print("Replace this with the select by attributes code")
# -- now find out how long it took
end = time.time()
print(end - start)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Sep 2022 07:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209042#M59435</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-09-02T07:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209072#M59441</link>
      <description>&lt;P&gt;I exported the model into a python but couldn’t figure out how to stick the piece of code you have already provided in order to get the time printed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me on this?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2022-09-02 12:37:39
"""
import arcpy

def Model():  # IndexingElapsedTime

    # To allow overwriting outputs change overwriteOutput option to True.
    arcpy.env.overwriteOutput = False

    # Model Environment settings
    with arcpy.EnvManager(scratchWorkspace=r"C:\Z8\Q.gdb", workspace=r"C:\Z8\Parcels_NonIndexed.gdb"):
        Parcels = "Parcels"

        # Process: Copy Features (Copy Features) (management)
        Output_Feature_Class = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Add Attribute Index (Add Attribute Index) (management)
        Parcels_CopyFeatures = arcpy.management.AddIndex(in_table=Output_Feature_Class, fields=["ParcelNumber"], index_name="ParcelNumber", unique="NON_UNIQUE", ascending="NON_ASCENDING")[0]

        # Process: Select Layer By Attribute (Select Layer By Attribute) (management)
        Parcels_CopyFeatures_Layer, Count = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Parcels_CopyFeatures, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")

        # Process: Copy Features (2) (Copy Features) (management)
        Output_Feature_Class_2_ = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures1"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class_2_, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Select Layer By Attribute (2) (Select Layer By Attribute) (management)
        Parcels_CopyFeatures1_Layer, Count_2_ = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Output_Feature_Class_2_, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")

if __name__ == '__main__':
    Model()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clip_1200.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50241i8F00EE0759657DD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clip_1200.jpg" alt="Clip_1200.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 10:43:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209072#M59441</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2022-09-02T10:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209078#M59442</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3165"&gt;@JamalNUMAN&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2022-09-02 12:37:39
"""
import arcpy, time

def Model():  # IndexingElapsedTime

    # To allow overwriting outputs change overwriteOutput option to True.
    arcpy.env.overwriteOutput = False

    # Model Environment settings
    with arcpy.EnvManager(scratchWorkspace=r"C:\Z8\Q.gdb", workspace=r"C:\Z8\Parcels_NonIndexed.gdb"):
        Parcels = "Parcels"

        # Process: Copy Features (Copy Features) (management)
        Output_Feature_Class = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Add Attribute Index (Add Attribute Index) (management)
        Parcels_CopyFeatures = arcpy.management.AddIndex(in_table=Output_Feature_Class, fields=["ParcelNumber"], index_name="ParcelNumber", unique="NON_UNIQUE", ascending="NON_ASCENDING")[0]

        # Process: Select Layer By Attribute (Select Layer By Attribute) (management)
		startTime = time.time()
        Parcels_CopyFeatures_Layer, Count = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Parcels_CopyFeatures, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")
		endTime = time.time()
		elapsedTime = endTime - startTime
		arcpy.AddMessageE(f"Selection took {elapsedTime} seconds to complete")

        # Process: Copy Features (2) (Copy Features) (management)
        Output_Feature_Class_2_ = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures1"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class_2_, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Select Layer By Attribute (2) (Select Layer By Attribute) (management)
		startTime = time.time()
        Parcels_CopyFeatures1_Layer, Count_2_ = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Output_Feature_Class_2_, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")
		endTime = time.time()
		elapsedTime = endTime - startTime
		arcpy.AddMessageE(f"Selection took {elapsedTime} seconds to complete")

if __name__ == '__main__':
    Model()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 11:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209078#M59442</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2022-09-02T11:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209084#M59443</link>
      <description>&lt;P&gt;It fails to run. I got an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clip_1202.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50243i9EDB30D86B8BB87E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clip_1202.jpg" alt="Clip_1202.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 12:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209084#M59443</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2022-09-02T12:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209106#M59444</link>
      <description>&lt;P&gt;Make sure the indentation matches for the highlighted lines.&amp;nbsp; They should align with the same indentation as the&amp;nbsp;&lt;STRONG&gt;Parcels_CopyFeatures1_Layer,....&lt;/STRONG&gt; line.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JakeSkinner_0-1662122529117.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50254iC84CDB27796AA470/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JakeSkinner_0-1662122529117.png" alt="JakeSkinner_0-1662122529117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 12:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209106#M59444</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2022-09-02T12:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209204#M59460</link>
      <description>&lt;P&gt;I got an error as per the screenshot below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clip_1206.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50278i25F2187AF9558DE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clip_1206.jpg" alt="Clip_1206.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2022-09-02 12:37:39
"""
import arcpy, time

def Model():  # IndexingElapsedTime

    # To allow overwriting outputs change overwriteOutput option to True.
    arcpy.env.overwriteOutput = True

    # Model Environment settings
    with arcpy.EnvManager(scratchWorkspace=r"C:\Z8\Q.gdb", workspace=r"C:\Z8\Parcels_NonIndexed.gdb"):
        Parcels = "Parcels"

        # Process: Copy Features (Copy Features) (management)
        Output_Feature_Class = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Add Attribute Index (Add Attribute Index) (management)
        Parcels_CopyFeatures = arcpy.management.AddIndex(in_table=Output_Feature_Class, fields=["ParcelNumber"], index_name="ParcelNumber", unique="NON_UNIQUE", ascending="NON_ASCENDING")[0]

        # Process: Select Layer By Attribute (Select Layer By Attribute) (management)
        startTime = time.time()
        Parcels_CopyFeatures_Layer, Count = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Parcels_CopyFeatures, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")
        endTime = time.time()
        elapsedTime = endTime - startTime
        arcpy.AddMessageE(f"Selection took {elapsedTime} seconds to complete")

        # Process: Copy Features (2) (Copy Features) (management)
        Output_Feature_Class_2_ = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures1"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class_2_, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Select Layer By Attribute (2) (Select Layer By Attribute) (management)
        startTime = time.time()
        Parcels_CopyFeatures1_Layer, Count_2_ = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Output_Feature_Class_2_, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")
        endTime = time.time()
        elapsedTime = endTime - startTime
        arcpy.AddMessageE(f"Selection took {elapsedTime} seconds to complete")

if __name__ == '__main__':
    Model()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:11:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209204#M59460</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2022-09-02T16:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209209#M59462</link>
      <description>&lt;P&gt;Type-o on my part.&amp;nbsp; Just remove the extra E in arcpy.AddMessageE (line 28 and 29).&amp;nbsp; Should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.AddMessage(f"Selection took {elapsedTime} seconds to complete")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:18:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209209#M59462</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2022-09-02T16:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209318#M59482</link>
      <description>&lt;P&gt;It works fine but the elapsed time is not printed for the “select by attribute” tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clip_1207.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50312iBC26FA1FC6C84103/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clip_1207.jpg" alt="Clip_1207.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2022-09-02 12:37:39
"""
import arcpy, time

def Model():  # IndexingElapsedTime

    # To allow overwriting outputs change overwriteOutput option to True.
    arcpy.env.overwriteOutput = True

    # Model Environment settings
    with arcpy.EnvManager(scratchWorkspace=r"C:\Z8\Q.gdb", workspace=r"C:\Z8\Parcels_NonIndexed.gdb"):
        Parcels = "Parcels"

        # Process: Copy Features (Copy Features) (management)
        Output_Feature_Class = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Add Attribute Index (Add Attribute Index) (management)
        Parcels_CopyFeatures = arcpy.management.AddIndex(in_table=Output_Feature_Class, fields=["ParcelNumber"], index_name="ParcelNumber", unique="NON_UNIQUE", ascending="NON_ASCENDING")[0]

        # Process: Select Layer By Attribute (Select Layer By Attribute) (management)
        startTime = time.time()
        Parcels_CopyFeatures_Layer, Count = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Parcels_CopyFeatures, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")
        endTime = time.time()
        elapsedTime = endTime - startTime
        arcpy.AddMessage(f"Selection took {elapsedTime} seconds to complete")

        # Process: Copy Features (2) (Copy Features) (management)
        Output_Feature_Class_2_ = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures1"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class_2_, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Select Layer By Attribute (2) (Select Layer By Attribute) (management)
        startTime = time.time()
        Parcels_CopyFeatures1_Layer, Count_2_ = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Output_Feature_Class_2_, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")
        endTime = time.time()
        elapsedTime = endTime - startTime
        arcpy.AddMessage(f"Selection took {elapsedTime} seconds to complete")

if __name__ == '__main__':
    Model()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 19:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209318#M59482</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2022-09-02T19:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209328#M59483</link>
      <description>&lt;P&gt;How are you running the script?&amp;nbsp; You may need to change &lt;STRONG&gt;arcpy.AddMessage&lt;/STRONG&gt; to &lt;STRONG&gt;print.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 19:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209328#M59483</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2022-09-02T19:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209367#M59487</link>
      <description>&lt;P&gt;I’m running the script from inside the Pro as per screenshot in my pervious post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the correct script for the print that needs to replace:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;arcpy.AddMessage(f"Selection took {elapsedTime} seconds to complete")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 19:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209367#M59487</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2022-09-02T19:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209464#M59494</link>
      <description>&lt;LI-CODE lang="python"&gt;print(f"Selection took {elapsedTime} seconds to complete")&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 03 Sep 2022 00:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209464#M59494</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-09-03T00:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209481#M59497</link>
      <description>&lt;P&gt;Great. It works fine with no issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The comparison demonstrates a slight difference when performing the “select by attribute” tool on an indexed data and a nonindexed for a data of around 340,000 records as per the screenshot below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2022-09-02 12:37:39
"""
import arcpy, time

def Model():  # IndexingElapsedTime

    # To allow overwriting outputs change overwriteOutput option to True.
    arcpy.env.overwriteOutput = True

    # Model Environment settings
    with arcpy.EnvManager(scratchWorkspace=r"C:\Z8\Q.gdb", workspace=r"C:\Z8\Parcels.gdb"):
        Parcels = "Parcels"

        # Process: Copy Features (Copy Features) (management)
        Output_Feature_Class = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Add Attribute Index (Add Attribute Index) (management)
        Parcels_CopyFeatures = arcpy.management.AddIndex(in_table=Output_Feature_Class, fields=["ParcelNumber"], index_name="ParcelNumber", unique="NON_UNIQUE", ascending="NON_ASCENDING")[0]

        # Process: Select Layer By Attribute (Select Layer By Attribute) (management)
        startTime = time.time()
        Parcels_CopyFeatures_Layer, Count = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Parcels_CopyFeatures, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")
        endTime = time.time()
        elapsedTime = endTime - startTime
        print(f"Selection of indexed data took {elapsedTime} seconds to complete")

        # Process: Copy Features (2) (Copy Features) (management)
        Output_Feature_Class_2_ = "C:\\Z8\\Q.gdb\\Parcels_CopyFeatures1"
        arcpy.management.CopyFeatures(in_features=Parcels, out_feature_class=Output_Feature_Class_2_, config_keyword="", spatial_grid_1=None, spatial_grid_2=None, spatial_grid_3=None)

        # Process: Select Layer By Attribute (2) (Select Layer By Attribute) (management)
        startTime = time.time()
        Parcels_CopyFeatures1_Layer, Count_2_ = arcpy.management.SelectLayerByAttribute(in_layer_or_view=Output_Feature_Class_2_, selection_type="NEW_SELECTION", where_clause="ParcelNumber = '72'", invert_where_clause="")
        endTime = time.time()
        elapsedTime = endTime - startTime
        print(f"Selection on nonindexed data took {elapsedTime} seconds to complete")

if __name__ == '__main__':
    Model()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clip_1225.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50402i3031F9E8076FF8B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clip_1225.jpg" alt="Clip_1225.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 04:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209481#M59497</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2022-09-03T04:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 3.0.1: How to measure the time for performing a particular tool in the model builder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209493#M59499</link>
      <description>&lt;P&gt;Proving that the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-indexes-in-the-geodatabase.htm" target="_blank"&gt;Attribute indexes in the geodatabase—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;was once again spot on &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;with the warning that an index "can" speed things up, but it doesn't say "will always" speed things up&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 08:52:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-0-1-how-to-measure-the-time-for/m-p/1209493#M59499</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-09-03T08:52:43Z</dc:date>
    </item>
  </channel>
</rss>

