2
0

time.c 405 B

12345678910111213141516171819
  1. #include <time.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include "test_helpers.h"
  5. int main(void) {
  6. struct timespec tm = {0, 0};
  7. int cgt = clock_gettime(CLOCK_REALTIME, &tm);
  8. ERROR_IF(clock_gettime, cgt, == -1);
  9. time_t t = time(NULL);
  10. ERROR_IF(time, t, == (time_t)-1);
  11. // TODO: Support clock() on Redox
  12. // clock_t c = clock();
  13. // ERROR_IF(clock, c, == (clock_t)-1);
  14. }