<?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: How to get Runtime for each statement in abap program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-runtime-for-each-statement-in-abap-program/m-p/4908982#M1146107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Determining the calculation time for calculating the tangent of 1. Since the runtime of the statement is less than a microsecond, the runtime of several executions in an inner loop is measured. The exection time for the loop itself is also measured in order to deduct it as an offset. These measurements are executed several times in an outer loop and the mean value is created using division by n0. Through division by ni, the runtime of an individual statement is determined. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: t0    TYPE i, 
      t1    TYPE i, 
      t2    TYPE i, 
      t3    TYPE i, 
      t4    TYPE i, 
      tm    TYPE f, 
      no    TYPE i VALUE 100, 
      ni    TYPE i VALUE 1000, 
      res   TYPE f. 

DO no TIMES. 
  GET RUN TIME FIELD t1. 
  DO ni TIMES. 
    res = TAN( 1 ). 
  ENDDO. 
  GET RUN TIME FIELD t2. 
  GET RUN TIME FIELD t3. 
  DO ni TIMES. 
  ENDDO. 
  GET RUN TIME FIELD t4. 
  t0 = t0 + ( ( t2 - t1 ) - ( t4 - t3 ) ). 
ENDDO. 

tm = t0 / ni / no. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source: SAP Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Dec 2008 12:33:18 GMT</pubDate>
    <dc:creator>SantoshKallem</dc:creator>
    <dc:date>2008-12-20T12:33:18Z</dc:date>
    <item>
      <title>How to get Runtime for each statement in abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-runtime-for-each-statement-in-abap-program/m-p/4908980#M1146105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any tool which tells the runtime of each statement in our program..apart from sto5 and se30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;PRASANNA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2008 12:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-runtime-for-each-statement-in-abap-program/m-p/4908980#M1146105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-20T12:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Runtime for each statement in abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-runtime-for-each-statement-in-abap-program/m-p/4908981#M1146106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check The Transaction DWDM. from here you can get sample Code. and it will take you into the &lt;/P&gt;&lt;P&gt;one screen. there you can write and test the Execution time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search in that Transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;SrEeNu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2008 12:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-runtime-for-each-statement-in-abap-program/m-p/4908981#M1146106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-20T12:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Runtime for each statement in abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-runtime-for-each-statement-in-abap-program/m-p/4908982#M1146107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Determining the calculation time for calculating the tangent of 1. Since the runtime of the statement is less than a microsecond, the runtime of several executions in an inner loop is measured. The exection time for the loop itself is also measured in order to deduct it as an offset. These measurements are executed several times in an outer loop and the mean value is created using division by n0. Through division by ni, the runtime of an individual statement is determined. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: t0    TYPE i, 
      t1    TYPE i, 
      t2    TYPE i, 
      t3    TYPE i, 
      t4    TYPE i, 
      tm    TYPE f, 
      no    TYPE i VALUE 100, 
      ni    TYPE i VALUE 1000, 
      res   TYPE f. 

DO no TIMES. 
  GET RUN TIME FIELD t1. 
  DO ni TIMES. 
    res = TAN( 1 ). 
  ENDDO. 
  GET RUN TIME FIELD t2. 
  GET RUN TIME FIELD t3. 
  DO ni TIMES. 
  ENDDO. 
  GET RUN TIME FIELD t4. 
  t0 = t0 + ( ( t2 - t1 ) - ( t4 - t3 ) ). 
ENDDO. 

tm = t0 / ni / no. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source: SAP Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2008 12:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-runtime-for-each-statement-in-abap-program/m-p/4908982#M1146107</guid>
      <dc:creator>SantoshKallem</dc:creator>
      <dc:date>2008-12-20T12:33:18Z</dc:date>
    </item>
  </channel>
</rss>

