Skip to content

Instantly share code, notes, and snippets.

@zodiac1111
zodiac1111 / Build_time.c
Created October 31, 2013 01:46
简单的打印编译日期,使用gcc的宏
//打印编译构建的日期和时间,类似:Dec 3 2012 09:59:57
#define PRINT_BUILD_TIME { \
printf("\tBuild time:\t%s %s\n", \
__DATE__, __TIME__); \
}
int main(void)
{
return 0;
}