Time.h 715 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <stdint.h>
  3. namespace il2cpp
  4. {
  5. namespace os
  6. {
  7. class Time
  8. {
  9. public:
  10. /* Returns the number of milliseconds from boot time: this should be monotonic */
  11. static uint32_t GetTicksMillisecondsMonotonic();
  12. /* Returns the number of 100ns ticks from unspecified time: this should be monotonic */
  13. static int64_t GetTicks100NanosecondsMonotonic();
  14. /* Returns the number of 100ns ticks since 1/1/1, UTC timezone */
  15. static int64_t GetTicks100NanosecondsDateTime();
  16. // Retrieves the current system date and time. The information is in Coordinated Universal Time(UTC) format.
  17. static int64_t GetSystemTimeAsFileTime();
  18. };
  19. }
  20. }