core_time.h 321 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4. #include <inttypes.h>
  5. #include <sys/types.h>
  6. #ifndef NSEC_PER_SEC
  7. #define NSEC_PER_SEC 1000000000LL
  8. #endif
  9. /*
  10. * monotonic time in nanoseconds
  11. * args:
  12. * none
  13. *
  14. * asserts:
  15. * none
  16. *
  17. * returns: monotonic time in nanoseconds
  18. */
  19. uint64_t ns_time_monotonic();