I am using the command :

```
time gcc -lm test.c > time.txt

```

to determine the compilation time etc. and then write them to a file.BUt when i use the above command nothing gets printed into the file?

Where am i going wrong?