I have this command:
time -p sh -c 'command1; command2;'
So command1
and command2
is executed and I get the real, user and sys time printed on the console.
But I want that command1; command2;
is looped 10 times and then I want to get the time which is used for the two commands.
time (for i in {1..10}; do sleep 1 ; done)
– frostschutz Mar 24 '13 at 18:47time ( <multiline loop> )
– daviewales Feb 28 '23 at 04:53