Added tick_add proc to core:time.

This commit is contained in:
Barinzaya
2025-04-24 09:17:48 -04:00
parent c7f9d2b1b7
commit 6400693197

View File

@@ -17,6 +17,13 @@ tick_now :: proc "contextless" () -> Tick {
return _tick_now()
}
/*
Add duration to a tick.
*/
tick_add :: proc "contextless" (t: Tick, d: Duration) -> Tick {
return Tick{t._nsec + i64(d)}
}
/*
Obtain the difference between ticks.
*/