SHARE
TWEET

Untitled

a guest Jun 25th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <time.h>
  2. #include <stdio.h>
  3.  
  4. int main(void)
  5. {
  6.     clock_t begin = clock();
  7.     int a = 1 + 1;
  8.     clock_t end = clock();
  9.     double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
  10.     printf("%f seconds\n", time_spent); // Returns something like 0.000002 seconds
  11. }
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
 
Top