How long does my program take to run ?
How long does my program take to run ?
(OP)
i need to know, in fractions of a second, how long my script/program takes to run. i've already tried the "time" and "date" commands, but i only get increments of whole seconds.
any suggestions would be most welcomed !
any suggestions would be most welcomed !





RE: How long does my program take to run ?
#!/bin/sh
i=0
while [ $i -lt 500 ]
do
who >& /dev/null
i=`expr $i + 1`
done
exit 1
RE: How long does my program take to run ?
#!/bin/sh
i=0
while [ $i -lt 500 ]
do
./yourProgram
i=`expr $i + 1`
done
exit