For checking efficiency of code I need to know time taken in execution of code.With NSlog is easy to know as it shows time up to ms.How can i achieve this in CClog. Thanks in advance
modify cocos/2d/ios/CCCommon.mm
void log(const char * pszFormat, ...)
{
// printf("cocos2d: ");
char szBuf[kMaxLogLen+1] = {0};
va_list ap;
va_start(ap, pszFormat);
vsnprintf(szBuf, kMaxLogLen, pszFormat, ap);
va_end(ap);
// printf("%s", szBuf);
// printf("\n");
NSLog(@"%s", szBuf);
}
Thanks ……works like a charm