theactiveactor theactiveactor - 1 year ago 119
C++ Question

Embed timestamp in object code at compile time with C++

I want to perform a

to display when the currently executing code was last compiled. Does C/C++ provide a macro that gives you that resolves to a timestamp during compilation?

Answer Source

You could use __DATE__ and __TIME__.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download