Revision: 41491
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41491&view=rev
Author:   brlcad
Date:     2010-12-01 06:38:42 +0000 (Wed, 01 Dec 2010)

Log Message:
-----------
clean up and simplify the elapsed time calculation by using seconds since 
epoch.  may or may not be posix, but seems to work well on bsd, linux, mac.  
also tighten up the status output lines including a running tally of the 
elapsed time via '22756'

Modified Paths:
--------------
    brlcad/trunk/sh/conversion.sh

Modified: brlcad/trunk/sh/conversion.sh
===================================================================
--- brlcad/trunk/sh/conversion.sh       2010-12-01 06:19:37 UTC (rev 41490)
+++ brlcad/trunk/sh/conversion.sh       2010-12-01 06:38:42 UTC (rev 41491)
@@ -137,7 +137,7 @@
 
     # this routine either reports the current time (in seconds)
 
-    elp=`date '+%Y %m %d %H %M %S' | awk '{print ($1*31622400) + 
(($2-1)*2678400) + (($3-1)*86400) + ($4*360) + ($5*60) + ($6)}'`
+    elp=`date '+%s'`
     echo $elp
     return
 }
@@ -452,7 +452,7 @@
        if test "x$nmg" = "xpass" && test "x$bot" = "xpass" ; then
            status=OK
        fi
-       $ECHO "%s\tnmg: %s %s\tbot %s %s\t%s:%s" $status $nmg $real_nmg $bot 
$real_bot "$file" "$object"
+       $ECHO "%-4s\tnmg: %s %s\tbot: %s %s %6ds %s:%s" $status $nmg $real_nmg 
$bot $real_bot $SECONDS "$file" "$object"
        count=`expr $count + 1`
 
     done


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to