SHARE
TWEET

Untitled

Bisus Nov 8th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main(int argc, const char *argv[])
  2. {
  3.     double d;
  4.     clock_t begin_time, end_time;
  5.  
  6.     if(argc!=2)
  7.     {
  8.         fprintf(stderr, "Usage: %s name_of_file\n", argv[0]);
  9.         return -1;
  10.     }
  11.  
  12.     begin_time = clock();
  13.     printf("f(%s, &d) returned %d\n", argv[1], f(argv[1], &d));
  14.     end_time = clock();
  15.     printf("d==%.16lf\ntime==%lf\n", d, (double)(end_time - begin_time)/CLOCKS_PER_SEC);
  16.  
  17.     return 0;
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top