<?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 Measuring code execution time on MPC5554 in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Measuring-code-execution-time-on-MPC5554/m-p/159940#M813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to measure the execution time of code on MPC5554. What is the most accurate method to do this. Any sample code would be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;dranne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Nov 2010 14:28:41 GMT</pubDate>
    <dc:creator>dranne</dc:creator>
    <dc:date>2010-11-03T14:28:41Z</dc:date>
    <item>
      <title>Measuring code execution time on MPC5554</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Measuring-code-execution-time-on-MPC5554/m-p/159940#M813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to measure the execution time of code on MPC5554. What is the most accurate method to do this. Any sample code would be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;dranne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 14:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Measuring-code-execution-time-on-MPC5554/m-p/159940#M813</guid>
      <dc:creator>dranne</dc:creator>
      <dc:date>2010-11-03T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring code execution time on MPC5554</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Measuring-code-execution-time-on-MPC5554/m-p/159941#M814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;given the absence of interrupts, a certainty that the time base is enabled, a certainty that the timebase is going to stay enabled, and an assumption that there is no overflow of TBL, or that in any case&amp;nbsp;you know how to make sure TBU/TBL are read in a consistent manner:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;read the time base registers at the start of the code block, perhaps&amp;nbsp;into a U64 called start_time&lt;/P&gt;&lt;P&gt;execute the code block&lt;/P&gt;&lt;P&gt;read the time regbase registers agin, into a U64 called finish_time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actual code execution time = (finish_time - start-time) / system_clock_freq - overhead_time&lt;/P&gt;&lt;P&gt;overhead time is the time you lose if the code block is &amp;lt;nothing&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 06:07:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Measuring-code-execution-time-on-MPC5554/m-p/159941#M814</guid>
      <dc:creator>wg0z</dc:creator>
      <dc:date>2011-01-17T06:07:59Z</dc:date>
    </item>
  </channel>
</rss>

