mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Added tick_add proc to core:time.
This commit is contained in:
@@ -17,6 +17,13 @@ tick_now :: proc "contextless" () -> Tick {
|
|||||||
return _tick_now()
|
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.
|
Obtain the difference between ticks.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user