time.h 282 B

123456789101112131415161718192021222324
  1. #ifndef __GBLIBC_TIME_H_
  2. #define __GBLIBC_TIME_H_
  3. #include <stdint.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define CLOCK_REALTIME 0
  8. typedef int clockid_t;
  9. struct timespec {
  10. time_t tv_sec;
  11. long tv_nsec;
  12. int : 32; // padding
  13. };
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif