i'm using ubuntu and G++ 4.6.3 compiler. I compiled the code and create "program1" file
Now i exceute the program with an "./program1" command and i want to see how long it took to run the program? how do i do this? what command or parameter do i need to type so it will tell me how long it took my program to run?
tdk93, if you want to do it in windows, use codeblocks, it uses the ming32 compiler with is basically a GNU gcc compiler. Codeblocks has a function that lets you run the program and it tells you how long it's been running
the problem with wall-clock time is that it is counting the time that the process manager and other programs also use.
You probably want to know how much your program was executing (user time), that you can get with clock()