tools to measure the time taken by a set of commands

This commit is contained in:
nojhan 2012-08-11 11:32:36 +02:00
commit 3159e18512
2 changed files with 13 additions and 0 deletions

5
repeat.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
max=$1; shift;
for ((i=1; i <= max ; i++)); do # --> C-like syntax
eval "$@" &>/dev/null;
done