How to get the timestamp when code is compiled?

Hi,

You can use macros below:

printf("\n[Build] %s %s\n", __DATE__, __TIME__);
1 Like