#include <time.h>
clock_t start=clock();
//...
clock_t end=clock();
unsigned int dis_time=end-start;
#include <time.h>
clock_t start=clock();
//...
clock_t end=clock();
unsigned int dis_time=end-start;
time_t curr_time = time(NULL); struct tm *pt = NULL; pt = localtime(&curr_time); char cTime[256],cTime1; sprintf(cTime,"%04d.%02d.%02d%02d:%02d:%02d",pt->tm_year+1900, pt->tm_mon+1, pt->tm_mday,pt->tm_hour,pt->tm_min,pt->tm_sec);