diff options
Diffstat (limited to 'test/session.zig')
| -rw-r--r-- | test/session.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/session.zig b/test/session.zig index 91cca3e5..e82c8bee 100644 --- a/test/session.zig +++ b/test/session.zig @@ -340,6 +340,14 @@ pub const Session = struct { s.drain(); } + /// The host's clock on by `ns`, as its loop moves it: what waits on + /// time (a typed Grep's pause) is due at the next tick. + pub fn advance(s: *Session, ns: u64) void { + const p = pardesOf(s); + p.advance(p.clock.now_ns + ns); + s.drain(); + } + /// Kinds' jobs and draws held from now on (`hold_jobs`), until /// `releaseJobs`. pub fn holdJobs(s: *Session) void { |
