Advertisement
STANAANDREY

get exe time

Jul 21st, 2021
1,238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <time.h>
  3. #define CURR_EXE_TIME clock() / (double)CLOCKS_PER_SEC
  4.  
  5. int main() {
  6.     for (int i = 0; i < 1e9; i++);
  7.     printf("%lf", CURR_EXE_TIME);
  8.     return 0 ;
  9. }
  10.  
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement