Time.hx 470 B

123456789101112131415161718192021222324252627
  1. package eval.luv;
  2. import eval.integers.Int64;
  3. import eval.integers.UInt64;
  4. /**
  5. Current time.
  6. @see https://aantron.github.io/luv/luv/Luv/Time
  7. **/
  8. extern class Time {
  9. /**
  10. Get time.
  11. **/
  12. static function getTimeOfDay():Result<{sec:Int64, usec:Int}>;
  13. /**
  14. Samples the high-resolution timer.
  15. **/
  16. static function hrTime():UInt64;
  17. /**
  18. Suspends the calling thread for at least the given number of milliseconds.
  19. **/
  20. static function sleep(duration:Int):Void;
  21. }