<?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: SET RUN TIME CLOCK RESOLUTION? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540342#M246200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's OS dependent, If your OS does not support multiple precisions for measurement, ther's no difference between LOW and HIGH.&lt;/P&gt;&lt;P&gt; If SET RUN TIME CLOCK RESOLUTION not used in the progeam, default is HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2006 15:30:37 GMT</pubDate>
    <dc:creator>sridhar_k1</dc:creator>
    <dc:date>2006-08-24T15:30:37Z</dc:date>
    <item>
      <title>SET RUN TIME CLOCK RESOLUTION?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540341#M246199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My reading of the documentation says that I can use this construct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SET RUN TIME CLOCK RESOLUTION LOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to set the value returned by GET RUN TIME to be milliseconds.  A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SET RUN TIME CLOCK RESOLUTION HIGH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would return microseconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a simple test program it doesn't seem to make any difference.  The value returned by GET RUN TIME is always microseconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the demo program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZPERFTEST2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: TSTC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: s_time type i.&lt;/P&gt;&lt;P&gt;data: e_time type i.&lt;/P&gt;&lt;P&gt;data: total type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET RUN TIME CLOCK RESOLUTION HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get run time field s_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 10000 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Waste some time..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE * FROM TSTC&lt;/P&gt;&lt;P&gt;      WHERE PGMNA = 'SAPLC11E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get run time field e_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total = e_time - s_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: /  s_time, '  ',&lt;/P&gt;&lt;P&gt;         e_time,  '   ',&lt;/P&gt;&lt;P&gt;         total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 15:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540341#M246199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T15:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: SET RUN TIME CLOCK RESOLUTION?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540342#M246200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's OS dependent, If your OS does not support multiple precisions for measurement, ther's no difference between LOW and HIGH.&lt;/P&gt;&lt;P&gt; If SET RUN TIME CLOCK RESOLUTION not used in the progeam, default is HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 15:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540342#M246200</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-24T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: SET RUN TIME CLOCK RESOLUTION?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540343#M246201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;F1 Help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET RUN TIME CLOCK RESOLUTION&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants: &lt;/P&gt;&lt;P&gt;1. SET RUN TIME CLOCK RESOLUTION HIGH. &lt;/P&gt;&lt;P&gt;2. SET RUN TIME CLOCK RESOLUTION LOW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;You use these statements to determine the accuracy ofruntime measurements obtained using GETRUN TIME: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Low accuracy measures runtime to the millisecond, but themeasurement interval is longer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;High accuracy measures runtime to the microsectond, but themeasurement interval is shorter. High accuracy is the default setting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For long measurement intervals (seconds or more), low accuracy isnormally sufficient. The measurement result is correct on allplatforms, regardless of whether the host has one or more processors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For short measurement intervals (less than a second), you should usethe high accuracy setting, but this depends on the platform and thenumber of processors on the host: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;High accuracy measurement produces correct results on either singleor multiple processor machines on the following platforms (forexceptions, see the note below): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AS/400 with OS/400 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SNI with SINIX &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUN with SUN-OS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Windows NT&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;On the following platforms, the high-accuracy measurement is only correct on single-processor hosts - incorrect values may be returned on multiple processor hosts: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEC with OSF/1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HP with HP-UX &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IBM with AIX&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On these platforms, the mesurement is based on a hardware registerthat is tied to the CPU. The registers are not synchronizedbetween the different processors. This leads to incorrect valuesfollowing a change of processor. If the measurement section is short, you should repeat themeasurement several times and then take the lowest value as yourresult. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If the measurement interval at high accuracy cannot becontained in a single processor register, an incorrect value willresult (see 'Utilities -&amp;gt; Interval...'). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1 &lt;/P&gt;&lt;P&gt;SET RUN TIME CLOCK RESOLUTION HIGH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;GET RUN TIME uses high accuracy with a shortmeasurement interval to measure the runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 &lt;/P&gt;&lt;P&gt;SET RUN TIME CLOCK RESOLUTION LOW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;GET RUN TIME uses low accuracy with a longmeasurement interval to measure the runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Runtime errors: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET_RUN_TIME_CLOCK_ERROR : After GET RUN TIME, you may no longer use SET RUN TIME CLOCKRESOLUTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 15:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540343#M246201</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-24T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: SET RUN TIME CLOCK RESOLUTION?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540344#M246202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This particular system is running on Windows - I can't confirm at this point if it has multiple CPUs.  I will also test on a Unix box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can understand that the HIGH (microseconds) resolution might not work on all platforms, but LOW (milliseconds)?  I'd expect that on all platforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it is all I'm seeing on my Windows box is HIGH (microseconds) resolution no matter what.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 15:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540344#M246202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T15:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: SET RUN TIME CLOCK RESOLUTION?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540345#M246203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my reading of the documentation, it seems that that get run time always reports in micoseconds, but if the resolution is set to low, then the precision of the measurement is lower.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 16:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540345#M246203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T16:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: SET RUN TIME CLOCK RESOLUTION?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540346#M246204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tx: ST06 shows number of CPUs, it's shown next to count top right side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 16:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540346#M246204</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-24T16:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: SET RUN TIME CLOCK RESOLUTION?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540347#M246205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has 2.  Thanks for the ST06 pointer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 16:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-run-time-clock-resolution/m-p/1540347#M246205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T16:17:29Z</dc:date>
    </item>
  </channel>
</rss>

