1
I’m trying to use the time function on the terminal. When I try to use it only to display always I have the expected return.
Commando:
time ./main
Exit:
real 0m0.119s
user 0m0.113s
sys 0m0.006s
But when I try to redirect this to a pipe file as the example below, the file remains blank and the output is printed on the screen.
Commando:
time ./main >> teste.txt
Does anyone know what may be wrong and/or how I get the expected result?
The answer raised another question, shell is synonymous with subshell?
– pmargreff
@pmargreff is a new shell instance executed by a shell. It’s the same thing, they just came up with a different name because it’s a shell that called each other.
– Bacco