<?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: TRACE elapsed timespan in a QVW script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904582#M658448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very close -- now just trying to format result in seconds...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2015 23:35:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-24T23:35:04Z</dc:date>
    <item>
      <title>TRACE elapsed timespan in a QVW script</title>
      <link>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904580#M658446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;I'm trying to the following in a QVW script, and am missing something in how I calculate the duration:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LET vStartTime = Now();&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;// [Do something that takes a few minutes]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LET vEndTime = Now();&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LET vDuration = $(vEndTime) - $(vStartTime);&amp;nbsp; // SCRIPT ERROR&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;TRACE Elapsed time: $(vDuration);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I would have thought that &lt;A href="https://community.qlik.com/message/357138"&gt;Using TRACE to capture the Elapsed Reload time&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; would have answered this question, but it's missing the timespan/duration/elapsed part.&amp;nbsp; I've tried using the Interval() function, but so far without success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can anyone correct this script?&amp;nbsp; Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 23:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904580#M658446</guid>
      <dc:creator />
      <dc:date>2015-04-24T23:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: TRACE elapsed timespan in a QVW script</title>
      <link>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904581#M658447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the script below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartTime = Now();&lt;/P&gt;&lt;P&gt;// [Do something that takes a few minutes]&lt;/P&gt;&lt;P&gt;SLEEP&amp;nbsp; 10000;&lt;/P&gt;&lt;P&gt;LET vEndTime = Now();&lt;/P&gt;&lt;P&gt;LET vDuration = Timestamp#('$(vEndTime)') - Timestamp#('$(vStartTime)');&amp;nbsp; &lt;/P&gt;&lt;P&gt;TRACE Elapsed time: $(vDuration);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 23:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904581#M658447</guid>
      <dc:creator>srchilukoori</dc:creator>
      <dc:date>2015-04-24T23:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: TRACE elapsed timespan in a QVW script</title>
      <link>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904582#M658448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very close -- now just trying to format result in seconds...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 23:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904582#M658448</guid>
      <dc:creator />
      <dc:date>2015-04-24T23:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: TRACE elapsed timespan in a QVW script</title>
      <link>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904583#M658449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDuration = Interval(Timestamp#('$(vEndTime)') - Timestamp#('$(vStartTime)'), 'hh:mm:ss');&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 23:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904583#M658449</guid>
      <dc:creator>srchilukoori</dc:creator>
      <dc:date>2015-04-24T23:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: TRACE elapsed timespan in a QVW script</title>
      <link>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904584#M658450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 23:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/904584#M658450</guid>
      <dc:creator />
      <dc:date>2015-04-24T23:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: TRACE elapsed timespan in a QVW script</title>
      <link>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/1603969#M658451</link>
      <description>&lt;P&gt;Excellent!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 02:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TRACE-elapsed-timespan-in-a-QVW-script/m-p/1603969#M658451</guid>
      <dc:creator>maykerreyes</dc:creator>
      <dc:date>2019-07-19T02:19:01Z</dc:date>
    </item>
  </channel>
</rss>

