<?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: Time difference between two date command, How? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699423#M932571</link>
    <description>If you're using ksh or sh, at the end of the script put:&lt;BR /&gt;&lt;BR /&gt;echo Total elasped time in seconds = $SECONDS&lt;BR /&gt;&lt;BR /&gt;This is a built in variable that starts at zero when the script (or shell) starts.  You can echo this at any point in the script to get elapsed time so far in the execution.&lt;BR /&gt;</description>
    <pubDate>Mon, 08 Apr 2002 19:22:53 GMT</pubDate>
    <dc:creator>Tom Danzig</dc:creator>
    <dc:date>2002-04-08T19:22:53Z</dc:date>
    <item>
      <title>Time difference between two date command, How?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699416#M932564</link>
      <description>Hi All,&lt;BR /&gt;I have a script that runs for couple minutes to couple hours. I am trying to find out total time this script runs. &lt;BR /&gt;I have put a variable start_time=`date` at the begining of the script and end_time=`date` at the end. From this How can I get the total time.&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Mon, 08 Apr 2002 18:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699416#M932564</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2002-04-08T18:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two date command, How?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699417#M932565</link>
      <description>Sachin,&lt;BR /&gt;&lt;BR /&gt;Did you think of the command "timex"?.&lt;BR /&gt;&lt;BR /&gt;timex script&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 08 Apr 2002 18:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699417#M932565</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-04-08T18:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two date command, How?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699418#M932566</link>
      <description>Sri,&lt;BR /&gt;&lt;BR /&gt;I was thinking the same thing!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 08 Apr 2002 19:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699418#M932566</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-08T19:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two date command, How?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699419#M932567</link>
      <description># man time&lt;BR /&gt;I've used this in the past ..</description>
      <pubDate>Mon, 08 Apr 2002 19:01:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699419#M932567</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-08T19:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two date command, How?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699420#M932568</link>
      <description>The easiest method is to do this:&lt;BR /&gt;START=$(perl -e 'print time;')&lt;BR /&gt;do your stuff&lt;BR /&gt;FINISH=$(perl -e 'print time;')&lt;BR /&gt;&lt;BR /&gt;These will return the time in epoch seconds; the elasped time is simply the difference between them.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Apr 2002 19:01:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699420#M932568</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-04-08T19:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two date command, How?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699421#M932569</link>
      <description>Hi Sachin&lt;BR /&gt;&lt;BR /&gt;timex &amp;lt; command &amp;gt; will give you the total time in terms of real usr system taken by the command.&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 08 Apr 2002 19:09:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699421#M932569</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-04-08T19:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two date command, How?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699422#M932570</link>
      <description>Clay, I like the way you think! great answer!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 08 Apr 2002 19:22:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699422#M932570</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-08T19:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two date command, How?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699423#M932571</link>
      <description>If you're using ksh or sh, at the end of the script put:&lt;BR /&gt;&lt;BR /&gt;echo Total elasped time in seconds = $SECONDS&lt;BR /&gt;&lt;BR /&gt;This is a built in variable that starts at zero when the script (or shell) starts.  You can echo this at any point in the script to get elapsed time so far in the execution.&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Apr 2002 19:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699423#M932571</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2002-04-08T19:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two date command, How?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699424#M932572</link>
      <description>Hi Clay,&lt;BR /&gt;I am using perl now. It is working fine. I have read your previous answer (Same command) regarding some time question but It didn't make me sense there. &lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Mon, 08 Apr 2002 19:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference-between-two-date-command-how/m-p/2699424#M932572</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2002-04-08T19:28:52Z</dc:date>
    </item>
  </channel>
</rss>

