<?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 Re: I want to write an arcpy script to get the time elapsed for a geoprocessing task in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/i-want-to-write-an-arcpy-script-to-get-the-time/m-p/290189#M22470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There might be fancier ways but this is the way I do it...&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import time
t1 = time.time()
# do something here
t2 = time.time()
TimeTakenSecs = t2 - t1
print TimeTakenSecs
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Neil&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:59:51 GMT</pubDate>
    <dc:creator>OLANIYANOLAKUNLE</dc:creator>
    <dc:date>2021-12-11T13:59:51Z</dc:date>
    <item>
      <title>I want to write an arcpy script to get the time elapsed for a geoprocessing task</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-write-an-arcpy-script-to-get-the-time/m-p/290187#M22468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to calculate the time it takes to run series of geoprocessing tasks and use the result to populate a particular field in my database, any suggestions? Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 12:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-write-an-arcpy-script-to-get-the-time/m-p/290187#M22468</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2013-10-08T12:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: I want to write an arcpy script to get the time elapsed for a geoprocessing task</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-write-an-arcpy-script-to-get-the-time/m-p/290188#M22469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There might be fancier ways but this is the way I do it...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import time t1 = time.time() # do something here t2 = time.time() TimeTakenSecs = t2 - t1 print TimeTakenSecs&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 12:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-write-an-arcpy-script-to-get-the-time/m-p/290188#M22469</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2013-10-08T12:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: I want to write an arcpy script to get the time elapsed for a geoprocessing task</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-write-an-arcpy-script-to-get-the-time/m-p/290189#M22470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There might be fancier ways but this is the way I do it...&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import time
t1 = time.time()
# do something here
t2 = time.time()
TimeTakenSecs = t2 - t1
print TimeTakenSecs
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Neil&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-write-an-arcpy-script-to-get-the-time/m-p/290189#M22470</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2021-12-11T13:59:51Z</dc:date>
    </item>
  </channel>
</rss>

