CClog With System Time

CClog With System Time
0.0 0


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/

void log(const char * pszFormat, ...)
//    printf("cocos2d: ");
    char szBuf[kMaxLogLen+1] = {0};
    va_list ap;
    va_start(ap, pszFormat);
    vsnprintf(szBuf, kMaxLogLen, pszFormat, ap);
//    printf("%s", szBuf);
//    printf("\n");
    NSLog(@"%s", szBuf);


Thanks ……works like a charm