<?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: get elaped time problem in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/get-elaped-time-problem/m-p/155386#M736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code should read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;void nill_task (uint_32 initial_data){  MQX_TICK_STRUCT tick_time;  TIME_STRUCT     ms_time;    while (1)  {    _time_get_elapsed_ticks(&amp;amp;tick_time);    _time_get_elapsed(&amp;amp;ms_time);    __no_operation();    _time_delay(1023);  }}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 08:59:21 GMT</pubDate>
    <dc:creator>BenG</dc:creator>
    <dc:date>2020-10-29T08:59:21Z</dc:date>
    <item>
      <title>get elaped time problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/get-elaped-time-problem/m-p/155385#M735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to experiment with _time_get_elapsed_ticks() and&amp;nbsp;_time_get_elapsed().&lt;/P&gt;&lt;P&gt;In the following code the the values in the pointers aren't getting adjusted.&lt;/P&gt;&lt;P&gt;I.e. The value(s) are garbage and are unchanged.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I presume I'm doing something wrong or haven't set something correctly in the bsp/psp. But the Reference Manual doesn't state that I need to enable anything specific in the user_config.h file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;void nill_task (uint_32 initial_data){  MQX_TICK_STRUCT_PTR tick_time_ptr;  TIME_STRUCT_PTR     ms_time_ptr;    while (1)  {    _time_get_elapsed_ticks(tick_time_ptr);    _time_get_elapsed(ms_time_ptr);    __no_operation();    _time_delay(1023);  }}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:59:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/get-elaped-time-problem/m-p/155385#M735</guid>
      <dc:creator>BenG</dc:creator>
      <dc:date>2020-10-29T08:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: get elaped time problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/get-elaped-time-problem/m-p/155386#M736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code should read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;void nill_task (uint_32 initial_data){  MQX_TICK_STRUCT tick_time;  TIME_STRUCT     ms_time;    while (1)  {    _time_get_elapsed_ticks(&amp;amp;tick_time);    _time_get_elapsed(&amp;amp;ms_time);    __no_operation();    _time_delay(1023);  }}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/get-elaped-time-problem/m-p/155386#M736</guid>
      <dc:creator>BenG</dc:creator>
      <dc:date>2020-10-29T08:59:21Z</dc:date>
    </item>
  </channel>
</rss>

