I want to know GCC compile time. Does GCC have any command or option for calculate compile time?
I have a file named hello.c and will compile it. I want to know the time
You can use the time utility:
time
$ time gcc -c hello.c real 0m0.224s user 0m0.013s sys 0m0.010s
Here's a link to the man page.