<?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 measure time taken by a function in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-measure-time-taken-by-a-function/m-p/786929#M3158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use for example FlexTimer module. Good starting point is the FTM_s32k144 example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61674iB42BA13079B1DEFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2018 12:35:39 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-06-15T12:35:39Z</dc:date>
    <item>
      <title>How to measure time taken by a function</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-measure-time-taken-by-a-function/m-p/786928#M3157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to measure the number of cycles or execution time spent on a function. I tried to use the normal clock() function after including the &amp;lt;time.h&amp;gt; library and got errors and i'm starting to think that using the clock() function won't lead to any results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a beginner and i would appreciate any help or hint possible.&lt;/P&gt;&lt;P&gt;I'm using the S32 Design Studio for ARM along with the S32K144 EVB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 09:26:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-measure-time-taken-by-a-function/m-p/786928#M3157</guid>
      <dc:creator>sna9</dc:creator>
      <dc:date>2018-06-15T09:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to measure time taken by a function</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-measure-time-taken-by-a-function/m-p/786929#M3158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use for example FlexTimer module. Good starting point is the FTM_s32k144 example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61674iB42BA13079B1DEFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-measure-time-taken-by-a-function/m-p/786929#M3158</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-06-15T12:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to measure time taken by a function</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-measure-time-taken-by-a-function/m-p/786930#M3159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another method would be to toggle a pin at the start and end of the function. You can measure this with an oscilloscope. To get exact numbers, you&amp;nbsp;will need to subtract the time for the pin toggling commands, but this is perhaps the easiest method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:56:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-measure-time-taken-by-a-function/m-p/786930#M3159</guid>
      <dc:creator>mikedoidge</dc:creator>
      <dc:date>2018-06-15T13:56:27Z</dc:date>
    </item>
  </channel>
</rss>

