feat(clock): add TimerSkippingRealExecutionClock - #55
Draft
janrnc wants to merge 2 commits into
Draft
Conversation
janrnc
commented
Jul 16, 2026
Member
- Adds TimerSkippingRealExecutionClock, a manual clock that skips idle time like the existing instant-execution clock, but lets triggered jobs run for real in their own goroutines.
- While any job is executing, the virtual clock flows 1:1 with the wall clock so jobs observe real time passing and any activation that comes due fires naturally; while idle, it freezes and jumps straight to the next activation or the requested target.
- AdvanceTo/AdvanceBy return once the clock reaches the requested instant (paying the real execution time of any job windows crossed along the way); WaitForIdle blocks until all triggered jobs have completed and the clock has frozen again.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #55 +/- ##
==========================================
+ Coverage 95.18% 95.34% +0.15%
==========================================
Files 18 19 +1
Lines 893 1117 +224
==========================================
+ Hits 850 1065 +215
- Misses 30 36 +6
- Partials 13 16 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
janrnc
force-pushed
the
feat/timer-skipping-real-execution-clock
branch
from
July 16, 2026 21:16
d5bfd79 to
2e20be2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.