Loading...
 
Skip to main content

System Workbench for STM32


predefined macro __TIME__ doesn't update

Hello,

I am trying to use TIME to get complied time, however, sometimes, I found TIME doesn’t update even current time is changed when I compile the project. Anybody know how to fix it?

Thanks

France

Hi,

TIME is only "updated" if the containing source file is recompiled, which is only the case if the source file was modified (or at least its timestamp was updated). The project build mechanism will only recomipile changed files, not all files.

Bernard (Ac6)


dautrevaux thanks a lot for your answer, you helped me a lot!