<?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>S12 / MagniV MicrocontrollersのトピックRe: S12X - Time clock</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Time-clock/m-p/128475#M942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;I didn't know that is possible to use this function in embedded system i read, from codewarrior help:&lt;BR /&gt;&lt;BR /&gt;Time Functions&lt;A target="_blank"&gt;&lt;/A&gt;&lt;P&gt;In the ANSI library, there also are several function to get the current time. In an embedded systems environment, implementations for these functions cannot be provided because different targets may use different ways to count the time&lt;BR /&gt;&lt;/P&gt;&lt;A target="_blank"&gt;&lt;/A&gt;&lt;P&gt;Listing 14.14 ANSI-C time functions&lt;/P&gt;&lt;PRE&gt;clock_t   clock(void);
time_t    time(time_t *time_val);
struct tm * localtime(const time_t *time_val);
time_t    mktime(struct tm *time_rec);
char      * asctime(const struct tm *time_rec);
char      ctime(const time *time_val);
size_t    strftime(char *s, size_t n,
                   const char *format,
                   const struct tm *time_rec);
double    difftime(time_t t1, time_t t2);
struct tm * gmtime(const time_t *time_val);
&lt;/PRE&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2007 19:51:07 GMT</pubDate>
    <dc:creator>PsychoDebugger</dc:creator>
    <dc:date>2007-04-11T19:51:07Z</dc:date>
    <item>
      <title>S12X - Time clock</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Time-clock/m-p/128473#M940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In xgate can driver code..i am using this code:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#include&amp;lt;time.h&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;clock_t start,end;&lt;/DIV&gt;&lt;DIV&gt;start=clock();&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Int_Init();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* my function name */ &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;end=clock()-start; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;now i want to know abt what s the value stored in this end variable.....means can i see the value of this variable......how i can print this variable.&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban Edit: part name in subject line&lt;/DIV&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-03-28&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:36 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 13:48:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Time-clock/m-p/128473#M940</guid>
      <dc:creator>candriver</dc:creator>
      <dc:date>2007-03-28T13:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: S12X - Time clock</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Time-clock/m-p/128474#M941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please mention device name in the subject line in all your messages.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You can see the variable if it is stored in a memory area visible by both cores. XGATE - CPU shared area is a good idea to authorize modification by both cores.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 14:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Time-clock/m-p/128474#M941</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-03-28T14:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: S12X - Time clock</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Time-clock/m-p/128475#M942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;I didn't know that is possible to use this function in embedded system i read, from codewarrior help:&lt;BR /&gt;&lt;BR /&gt;Time Functions&lt;A target="_blank"&gt;&lt;/A&gt;&lt;P&gt;In the ANSI library, there also are several function to get the current time. In an embedded systems environment, implementations for these functions cannot be provided because different targets may use different ways to count the time&lt;BR /&gt;&lt;/P&gt;&lt;A target="_blank"&gt;&lt;/A&gt;&lt;P&gt;Listing 14.14 ANSI-C time functions&lt;/P&gt;&lt;PRE&gt;clock_t   clock(void);
time_t    time(time_t *time_val);
struct tm * localtime(const time_t *time_val);
time_t    mktime(struct tm *time_rec);
char      * asctime(const struct tm *time_rec);
char      ctime(const time *time_val);
size_t    strftime(char *s, size_t n,
                   const char *format,
                   const struct tm *time_rec);
double    difftime(time_t t1, time_t t2);
struct tm * gmtime(const time_t *time_val);
&lt;/PRE&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 19:51:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Time-clock/m-p/128475#M942</guid>
      <dc:creator>PsychoDebugger</dc:creator>
      <dc:date>2007-04-11T19:51:07Z</dc:date>
    </item>
  </channel>
</rss>

