Feb 17, 2003 #1 lne Aerospace Joined Feb 17, 2003 Messages 1 Location DE 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 !
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 !
Mar 13, 2003 #2 scopio Chemical Joined Jul 28, 2002 Messages 2 Location CN How about this script ? Let the program runs 500 times . Thus u can see the time . #!/bin/sh i=0 while [ $i -lt 500 ] do who >& /dev/null i=`expr $i + 1` done exit 1 Upvote 0 Downvote
How about this script ? Let the program runs 500 times . Thus u can see the time . #!/bin/sh i=0 while [ $i -lt 500 ] do who >& /dev/null i=`expr $i + 1` done exit 1
Mar 13, 2003 #3 scopio Chemical Joined Jul 28, 2002 Messages 2 Location CN Sorry , this might be fit for you . #!/bin/sh i=0 while [ $i -lt 500 ] do ./yourProgram i=`expr $i + 1` done exit Upvote 0 Downvote
Sorry , this might be fit for you . #!/bin/sh i=0 while [ $i -lt 500 ] do ./yourProgram i=`expr $i + 1` done exit