fork download
  1. #include <stdio.h>
  2. #include <sys/time.h>
  3.  
  4. typedef struct timeval timeval;
  5.  
  6. int main(void) {
  7. timeval tv;
  8. for(int n = 0; n < 64; n++) {
  9. gettimeofday(&tv, NULL);
  10. printf("%d %d\n", tv.tv_sec, tv.tv_usec);
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
1739301906 352049
1739301906 352120
1739301906 352120
1739301906 352121
1739301906 352121
1739301906 352121
1739301906 352121
1739301906 352122
1739301906 352122
1739301906 352122
1739301906 352123
1739301906 352123
1739301906 352123
1739301906 352123
1739301906 352124
1739301906 352124
1739301906 352124
1739301906 352125
1739301906 352125
1739301906 352125
1739301906 352125
1739301906 352126
1739301906 352126
1739301906 352126
1739301906 352126
1739301906 352127
1739301906 352127
1739301906 352127
1739301906 352128
1739301906 352128
1739301906 352128
1739301906 352128
1739301906 352129
1739301906 352129
1739301906 352129
1739301906 352129
1739301906 352130
1739301906 352130
1739301906 352130
1739301906 352131
1739301906 352131
1739301906 352131
1739301906 352131
1739301906 352132
1739301906 352132
1739301906 352132
1739301906 352132
1739301906 352133
1739301906 352133
1739301906 352133
1739301906 352134
1739301906 352134
1739301906 352134
1739301906 352134
1739301906 352135
1739301906 352135
1739301906 352135
1739301906 352136
1739301906 352136
1739301906 352136
1739301906 352136
1739301906 352137
1739301906 352137
1739301906 352137