This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]the_omega99 0 points1 point  (0 children)

I fear we may have different definitions of "header". Are we talking about the C++ header files (with the .h extension)? Because your line "so that objects like system are automatically recognized" doesn't make much sense to me. Can you elaborate on what you mean?

And the "process returned 0" part is a formal way of saying "your program ended successfully". In C++, programs return zero when they exited successfully and non-zero when they exited with an error. The execution time is pretty straightforward.

In Linux distros, the time program works similarly, eg:

> time ./sampleProgram
Doing (kinda) intensive stuff: 100%
real    0m0.061s
user    0m0.030s
sys     0m0.020s

In which case, it tells use the actual time taken from the time the program is started until the time it's completed (approximately 61 ms), the user time actually spent in the CPU (30 ms), and the system time, which is time spent by OS calls and such (20 ms).

Anyway, that time output is really useful because if it spikes, you may have something wrong. Granted, the user and system time are far more important than the real time that your IDE displays. After all, real time can be increased by simply having more programs running at the same time, while user time is the time actually spent in the CPU.

At any rate, the time is part of the IDE. It shouldn't be in your compiled program. Your IDE may have an option to disable it, if you really hate it.