mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 02:12:04 +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()
|
||||
}
|
||||
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user