mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Add timestamp support using the new core:time
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package time
|
||||
|
||||
IS_SUPPORTED :: false;
|
||||
@@ -0,0 +1,3 @@
|
||||
package time
|
||||
|
||||
IS_SUPPORTED :: false;
|
||||
@@ -2,6 +2,8 @@ package time
|
||||
|
||||
import "core:sys/win32"
|
||||
|
||||
IS_SUPPORTED :: true;
|
||||
|
||||
now :: proc() -> Time {
|
||||
file_time: win32.Filetime;
|
||||
|
||||
@@ -18,5 +20,5 @@ now :: proc() -> Time {
|
||||
|
||||
|
||||
sleep :: proc(d: Duration) {
|
||||
win32.Sleep(u32(d/Millisecond));
|
||||
win32.sleep(i32(d/Millisecond));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user