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) | 理由: 感謝您的解答喔..^^ | |
|
|
|