time.c 265 B

12345678910111213
  1. #include <time.h>
  2. #include <stdio.h>
  3. int main(int argc, char** argv) {
  4. timespec tm = {0, 0};
  5. clock_gettime(CLOCK_REALTIME, &tm);
  6. perror("clock_gettime");
  7. time(NULL);
  8. perror("time");
  9. clock_t c = clock();
  10. perror("clock");
  11. return 0;
  12. }