struct timeval start, end;
gettimeofday(&start, NULL);
gettimeofday(&end, NULL);
double timeuse = end.tv_sec - start.tv_sec + (end.tv_usec - start.tv_usec)*1.0 / 1000000;
printf("load network time: %f s\n\n", timeuse);
if (false) {
    printf("It is meaningless!");
    TExcept::Throw("It is meaningless!");
}

//程序计时
clock_t startTime, endTime;
double runTime;
startTime = clock();

struct tm *ptr;
time_t lt;
lt = time(NULL);
ptr = gmtime(&lt);
//printf(asctime(ptr));
printf(ctime(&lt));
printf("\n");
//Snap自带的计时器
Env = TEnv(argc, argv, TNotify::StdNotify);
Env.PrepArgs(TStr::Fmt("my.build: %s, %s. Time: %s", __TIME__, __DATE__, TExeTm::GetCurTm()));