You can write a simple `for`-loop
time -p bash -c "for (( i=0; i<10; i++ )); do command1; command2; done;"
Note that I used `bash` instead of `sh` for the loop.
You can write a simple `for`-loop
time -p bash -c "for (( i=0; i<10; i++ )); do command1; command2; done;"
Note that I used `bash` instead of `sh` for the loop.