forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
27
Kha/Tools/macos/std/eval/luv/Time.hx
Normal file
27
Kha/Tools/macos/std/eval/luv/Time.hx
Normal file
@ -0,0 +1,27 @@
|
||||
package eval.luv;
|
||||
|
||||
import eval.integers.Int64;
|
||||
import eval.integers.UInt64;
|
||||
|
||||
/**
|
||||
Current time.
|
||||
|
||||
@see https://aantron.github.io/luv/luv/Luv/Time
|
||||
**/
|
||||
extern class Time {
|
||||
/**
|
||||
Get time.
|
||||
**/
|
||||
static function getTimeOfDay():Result<{sec:Int64, usec:Int}>;
|
||||
|
||||
/**
|
||||
Samples the high-resolution timer.
|
||||
**/
|
||||
static function hrTime():UInt64;
|
||||
|
||||
/**
|
||||
Suspends the calling thread for at least the given number of milliseconds.
|
||||
**/
|
||||
static function sleep(duration:Int):Void;
|
||||
|
||||
}
|
Reference in New Issue
Block a user