C time.h using


 1 #include "time.h"
 2 #include "stdio.h"
 3 #include "stdlib.h"
 4 int main(void) {
 5     time_t start, end;
 6     start = time(NULL);
 7     system("pause");
 8     end = time(NULL);
 9     printf("The pause used %f seconds.\n", difftime(end, start));//<-
10     system("pause");
11     return 0;
12 }

 

 

posted @ 2010-04-08 00:34  Freedom  阅读(167)  评论(0编辑  收藏  举报