Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. int main() {
  5.    time_t ara = time(NULL); // Get the system time
  6.    time_t dps;
  7.    int te = 0;
  8.    
  9.    for(int i = 0; i < 10000; i++){
  10.        printf("%d\n", i);
  11.    }
  12.    
  13.    dps = time(NULL);
  14.    
  15.    te = (int) ((long long)dps) - ((long long)ara);
  16.    
  17.    printf("%lld segons\n", te);
  18.    printf("%lld segons\n", te);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement