#defineNSLog(...) printf("%f %s\n",[[NSDatedate]timeIntervalSince1970],[[NSString stringWithFormat:__VA_ARGS__]UTF8String]);
如果希望只在开发环境有效:
#ifndef __OPTIMIZE__#define NSLog(...) printf("%f %s\n",[[NSDate date]timeIntervalSince1970],[[NSString stringWithFormat:__VA_ARGS__]UTF8String]);