#include <stdio.h>
#include <time.h>

int main()
{
    struct timespec ts;
    clock_gettime(CLOCK_REALTIME, &ts);
    printf("Time: %ld seconds and %ld nanoseconds\n", ts.tv_sec, ts.tv_nsec);

    return 0;
}
