0
I am creating a basic script in which I would like to take the runtime of a program each time it is called in the script.
#!/bin/bash
for i in {1..15}
do
echo "Execucao $i"
time ./meu_programa > resultados_nesse_arquivo.txt
done
But when running this script, I get only the default output of my program, how can I get similar result as:
Execucao X
real 0m0,001s
user 0m0,001s
sys 0m0,000s
I don’t quite understand, you want to register the timetable where it initiates the process or the duration of time that the process was being carried out?
– OldSchool