1 /* Test for gethrusec which depends on the correct emulation of 2 AT_SUN_SYSSTAT_ADDR in the auxiliary vector. */ 3 4 #include <stdio.h> 5 #include <strings.h> 6 #include <sys/system_stats.h> 7 main(void)8int main(void) 9 { 10 hrtime_t t = 0; 11 get_hrusec(&t); 12 printf("get_hrusec(): %s\n", (t == 0) ? "FAIL" : "PASS"); 13 14 memtime_sec_t m = 0; 15 memset(&m, 0, sizeof(m)); 16 get_sec_fromepoch(&m); 17 printf("get_sec_fromepoch(): %s\n", (m == 0) ? "FAIL" : "PASS"); 18 19 t = 0; 20 get_nsec_fromepoch(&t); 21 printf("get_nsec_fromepoch(): %s\n", (t == 0) ? "FAIL" : "PASS"); 22 return 0; 23 } 24 25