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

后端 未结 7 845
梦谈多话
梦谈多话 2021-01-03 17:58

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

相关标签:
7条回答
  • 2021-01-03 18:26

    I am using this to send a message to DbgView:

        OutputDebugStringA(("ATTACHED VERSION: "+ string(__DATE__) + " " + string(__TIME__)).c_str());
    
    0 讨论(0)
提交回复
热议问题