mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Make many package time procedures use "contextless" calling convention
This commit is contained in:
@@ -4,15 +4,15 @@ import "core:sys/es"
|
||||
|
||||
IS_SUPPORTED :: true;
|
||||
|
||||
now :: proc() -> Time {
|
||||
now :: proc "contextless" () -> Time {
|
||||
// TODO Replace once there's a proper time API.
|
||||
return Time{_nsec = i64(es.TimeStampMs() * 1e6)};
|
||||
}
|
||||
|
||||
sleep :: proc(d: Duration) {
|
||||
sleep :: proc "contextless" (d: Duration) {
|
||||
es.Sleep(u64(d/Millisecond));
|
||||
}
|
||||
|
||||
_tick_now :: proc() -> Tick {
|
||||
_tick_now :: proc "contextless" () -> Tick {
|
||||
return Tick{_nsec = i64(es.TimeStampMs() * 1e6)};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user