update essence API header

This commit is contained in:
nakst
2021-02-26 14:46:38 +00:00
parent ac155d9036
commit 7b4ddd9b18
4 changed files with 670 additions and 523 deletions
+17 -1
View File
@@ -1,2 +1,18 @@
package time
IS_SUPPORTED :: false;
import "core:sys/es"
IS_SUPPORTED :: true;
now :: proc() -> Time {
// TODO Replace once there's a proper time API.
return Time{_nsec = i64(es.TimeStampMs() * 1e6)};
}
sleep :: proc(d: Duration) {
es.Sleep(u64(d/Millisecond));
}
_tick_now :: proc() -> Tick {
return Tick{_nsec = i64(es.TimeStampMs() * 1e6)};
}