core-timing
CommunityDeterministic timing for predictable code.
AuthorAvneeshSarwate
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Deterministic, drift-free timing engine for JavaScript/TypeScript. It provides logical-time scheduling with structured concurrency, enabling precise control over when waits resolve and avoiding wall-clock drift.
Core Features & Use Cases
- Deterministic logical-time scheduling with TimeContext and a drift-free base time.
- Structured concurrency via branch() and branchWait() with join semantics.
- Dual execution modes: realtime (setTimeout/RAF) and offline (step-based) for reproducible testing.
- Beat-aware tempo with TempoMap and BPM ramping support.
- Deterministic RNG per context for reproducible randomness.
- Barrier primitives and priority queue-based scheduling for scalable coordination.
Quick Start
Use the library to start a realtime root context and wait for 1 second of logical time. Then cancel if needed.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: core-timing Download link: https://github.com/AvneeshSarwate/avTools/archive/main.zip#core-timing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.