#include <stdio.h> #include <time.h> int main(void) { time_t start,end; start = time(NULL); sleep(5); end = time(NULL); printf("%f",difftime(end,start)); return 0; }
#include <stdio.h> #include <time.h> int main(void) { time_t start,end; start = time(NULL); sleep(5); end = time(NULL); printf("%f",difftime(end,start)); return 0; }