Skip to content

Instantly share code, notes, and snippets.

@zodiac1111
Created October 31, 2013 01:46
Show Gist options
  • Save zodiac1111/7243244 to your computer and use it in GitHub Desktop.
Save zodiac1111/7243244 to your computer and use it in GitHub Desktop.
简单的打印编译日期,使用gcc的宏
//打印编译构建的日期和时间,类似:Dec 3 2012 09:59:57
#define PRINT_BUILD_TIME { \
printf("\tBuild time:\t%s %s\n", \
__DATE__, __TIME__); \
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment