I'm trying to use the time function on the terminal. When I try to use only to display always I have the expected return.
Command:
time ./main
Output:
real 0m0.119s
user 0m0.113s
sys 0m0.006s
But when I try to redirect this to a pipe file like the example below, the file remains blank and the output is printed on the screen.
Command:
time ./main >> teste.txt
Does anyone know what might be wrong and / or how do I get the expected result?