<?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>S32 Design StudioのトピックRe: time</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559835#M447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for my previous post. Return code -1 is correct, because the micro does not have any resources, how to return you correct time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the clock function description:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: .05pt;"&gt; &lt;STRONG style="font-size: 9pt; font-family: 'Segoe UI',sans-serif;"&gt;This function returns the calling process' current CPU time. If the CPU time is not available or cannot be &lt;/STRONG&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Segoe UI',sans-serif;"&gt;represented, clock returns the value (clock_t)(-1). &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is the time function description:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: .05pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Segoe UI',sans-serif;"&gt;The time function returns the current calendar time as a value of type time_t. If the argument result is not a null pointer, the calendar time value is also stored in *result. If the current calendar time is not available, the value &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Segoe UI',sans-serif;"&gt;(time_t)(-1) is returned. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: .05pt;"&gt;&lt;/P&gt;&lt;P&gt;So you cannot simply use these functions. The way, how to use these functions exists, but it will be pretty difficult and I do not have any experience with it. Please look at the follow&amp;nbsp; URL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F15030123%2Fhow-does-the-clock-function-in-ctime-access-the-system-clock" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/15030123/how-does-the-clock-function-in-ctime-access-the-system-clock&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 07:10:57 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2016-06-23T07:10:57Z</dc:date>
    <item>
      <title>time</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559831#M443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use time.h functions in S32 design studio? I tried clock() and also time() functions, but none of them works.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 08:15:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559831#M443</guid>
      <dc:creator>vladstoica</dc:creator>
      <dc:date>2016-06-22T08:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: time</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559832#M444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look at the following thread. We have already solve this problem, so I hope it will help you. If not, please write me back.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/640746#comment-640746" title="https://community.nxp.com/message/640746#comment-640746"&gt;https://community.nxp.com/message/640746#comment-640746&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 08:19:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559832#M444</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-06-22T08:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: time</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559833#M445</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;It doesn't work. I am using also newlib, but with or without the two ewl libraries, time() function always returns -1 (error code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 09:07:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559833#M445</guid>
      <dc:creator>vladstoica</dc:creator>
      <dc:date>2016-06-22T09:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: time</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559834#M446</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;Can you send me a configured project that contains time() or clock() function? I looket at that thread,but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 06:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559834#M446</guid>
      <dc:creator>vladstoica</dc:creator>
      <dc:date>2016-06-23T06:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: time</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559835#M447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for my previous post. Return code -1 is correct, because the micro does not have any resources, how to return you correct time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the clock function description:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: .05pt;"&gt; &lt;STRONG style="font-size: 9pt; font-family: 'Segoe UI',sans-serif;"&gt;This function returns the calling process' current CPU time. If the CPU time is not available or cannot be &lt;/STRONG&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Segoe UI',sans-serif;"&gt;represented, clock returns the value (clock_t)(-1). &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is the time function description:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: .05pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Segoe UI',sans-serif;"&gt;The time function returns the current calendar time as a value of type time_t. If the argument result is not a null pointer, the calendar time value is also stored in *result. If the current calendar time is not available, the value &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Segoe UI',sans-serif;"&gt;(time_t)(-1) is returned. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: .05pt;"&gt;&lt;/P&gt;&lt;P&gt;So you cannot simply use these functions. The way, how to use these functions exists, but it will be pretty difficult and I do not have any experience with it. Please look at the follow&amp;nbsp; URL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F15030123%2Fhow-does-the-clock-function-in-ctime-access-the-system-clock" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/15030123/how-does-the-clock-function-in-ctime-access-the-system-clock&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 07:10:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/time/m-p/559835#M447</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-06-23T07:10:57Z</dc:date>
    </item>
  </channel>
</rss>

