Skip to content

Commit 91a1fb6

Browse files
committed
small timing modifications
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2217 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 0c5afe7 commit 91a1fb6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Compiler/rml2sig/rmldep-new.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# Changed by Adrian Pop, adrpo@ida.liu.se, 2006-02-02
77
#
88

9-
date
9+
TMPSTART=`date +"%s"`
10+
TMPMSG=""
1011
mydir="`dirname $0`"
1112

1213
if [ -z "${OMDEV}" ]; then
@@ -28,19 +29,20 @@ else
2829
fi
2930

3031
if [ ! -f $sig_file ]; then
31-
echo "Sig file does not exist...";
32+
TMPMSG="Sig file does not exist...";
3233
${RML} -fdump-interface $1 > $sig_file;
3334
else
34-
echo "Generates tmp sig."
35+
#echo "Generates tmp sig."
3536
${RML} -fdump-interface $1 > $tmp_file
36-
echo "Diffing"
37+
#echo "Diffing"
3738
diff $tmp_file $sig_file > /dev/null
3839
if [ $? -eq 0 ]; then
39-
echo "Interface is the same"
40+
TMPMSG="Interface is the same"
4041
rm $tmp_file
4142
else
42-
echo "Interface has changed"
43+
TMPMSG="Interface has changed"
4344
\mv $tmp_file $sig_file
4445
fi
4546
fi
46-
date
47+
TMPEND=`date +"%s"`
48+
echo [`expr $TMPEND - $TMPSTART` second\(s\)]

0 commit comments

Comments
 (0)