I want to perform a printf()
to display when the currently executing code was last compiled. Does C/C++ provide a macro that gives you that resolves to a timest
Use a script, or create an application, to generate a C++ source file containing the build date and time. Add this file to the build setup. The other parts of the program can reference the data in this file.
This technique is also useful for embedding a version number into the program. The build process can control the version number.