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