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 }
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 }