#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>

int main()
{
    int r, i;
    struct timeval tv;
    for (i = 0; i < 100; i++) {
        r = gettimeofday(&tv, NULL);
        if (r == -1) {
            perror("gettimeofday");
            exit(1);
        }
        printf("%ld %ld\n", tv.tv_sec, tv.tv_usec);
    }
    return 0;
}
