Add timestamp support using the new core:time

This commit is contained in:
Mikkel Hjortshoej
2018-12-08 16:02:33 +01:00
parent 984fa1c672
commit 411d1450b0
5 changed files with 41 additions and 10 deletions
+3
View File
@@ -0,0 +1,3 @@
package time
IS_SUPPORTED :: false;
+3
View File
@@ -0,0 +1,3 @@
package time
IS_SUPPORTED :: false;
+3 -1
View File
@@ -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));
}