@@ -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.
*/