cmovies
|
分享:
▲
#include <stdio.h> #include <windows.h> // Windows function (GetTickCount, ....) #include <time.h> // time, difftime, ...
int main(int argc, char* argv[]) { DWORD stick, etick; time_t start, finish;
time(&start); stick = GetTickCount(); printf("Test beging...\n"); // test function time(&finish); etick = GetTickCount(); printf("Elapsed second(s)=%lf, Elapsed tick(s)=%u\n", difftime(finish, start), etick-stick); return 0; }
此文章被评分,最近评分记录财富:50 (by codeboy) | 理由: 感谢您的解答喔..^^ | |
|
|
|