I have inherited C/C++ code base, and in a number of .cpp files the #include directives are wrapped in #ifndef\'s with the headers internal sin
If a file is included, then that whole file has to be read, and even the overhead of opening/closing the file might be significant. By putting the guarding directives around the include statement, it never has to be opened. As always with these questions, the correct answer is: try taking out the ifndef/endif guards around the include directives and get your stopwatch...