<?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: Log time in milliseconds in LabWindows/CVI</title>
    <link>https://ni.lithium.com/t5/LabWindows-CVI/Log-time-in-milliseconds/m-p/563681#M30833</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Windows provides a function called &lt;A href="http://msdn2.microsoft.com/en-us/library/ms644904.aspx" target="_blank"&gt;QueryPerformanceCounter&lt;/A&gt;. This provides excellent accuracy.&lt;/P&gt;
&lt;P&gt;Regards, Guenter&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2007 21:17:13 GMT</pubDate>
    <dc:creator>GuenterMueller</dc:creator>
    <dc:date>2007-08-09T21:17:13Z</dc:date>
    <item>
      <title>Log time in milliseconds</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Log-time-in-milliseconds/m-p/563254#M30814</link>
      <description>&lt;DIV&gt;I am on measuring the intervals by which some&amp;nbsp;interrupt occurs.&lt;/DIV&gt;
&lt;DIV&gt;I want to log the time at which the interrupt occurs. It may by less than 1 ms.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What I could do, is to use the function "TimeStr()" but ius resolution is in seconds, so what I could get is something like that:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;[12:25:10]&lt;BR /&gt;[12:25:10]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:11]&lt;BR /&gt;[12:25:12]&lt;BR /&gt;[12:25:12]&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I want to measure these times in less than milliseconds.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Aug 2007 09:46:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Log-time-in-milliseconds/m-p/563254#M30814</guid>
      <dc:creator>ahmedadelfarid</dc:creator>
      <dc:date>2007-08-09T09:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Log time in milliseconds</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Log-time-in-milliseconds/m-p/563676#M30831</link>
      <description>If you use the FormatDateTimeString function, you should be able to display millisecond resolution. Here is some sample code:&lt;FONT face="Courier New"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;P class="Code"&gt;&lt;FONT face="Courier New"&gt;#define DATETIME_FORMATSTRING "[%H:%M:%S.%f]"&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Courier New"&gt;double currDateTime;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;int bufferLen;&lt;/FONT&gt;&lt;P class="codeNospace"&gt;&lt;FONT face="Courier New"&gt;char *dateTimeBuffer = NULL;&lt;BR /&gt;GetCurrentDateTime (&amp;amp;currDateTime);&lt;BR /&gt;bufferLen = FormatDateTimeString (currDateTime, 
DATETIME_FORMATSTRING, NULL, 0);&lt;BR /&gt;dateTimeBuffer = malloc (bufferLen + 1);&lt;BR /&gt;FormatDateTimeString (currDateTime, DATETIME_FORMATSTRING, dateTimeBuffer, bufferLen + 1 );&lt;/FONT&gt; &lt;/P&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Aug 2007 21:07:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Log-time-in-milliseconds/m-p/563676#M30831</guid>
      <dc:creator>LuisG</dc:creator>
      <dc:date>2007-08-09T21:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Log time in milliseconds</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Log-time-in-milliseconds/m-p/563681#M30833</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Windows provides a function called &lt;A href="http://msdn2.microsoft.com/en-us/library/ms644904.aspx" target="_blank"&gt;QueryPerformanceCounter&lt;/A&gt;. This provides excellent accuracy.&lt;/P&gt;
&lt;P&gt;Regards, Guenter&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2007 21:17:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Log-time-in-milliseconds/m-p/563681#M30833</guid>
      <dc:creator>GuenterMueller</dc:creator>
      <dc:date>2007-08-09T21:17:13Z</dc:date>
    </item>
  </channel>
</rss>

