Expand description
§Nanosecond Scheduler
Ultra-low latency scheduler with nanosecond precision for temporal consciousness applications. Designed for both native and WASM environments with <1μs tick overhead.
§Features
- Hardware TSC-based timing (x86_64) or high-resolution timers (WASM)
- Lock-free task queue with atomic operations
- Strange loop convergence with Lipschitz constraints
- Temporal window overlap management
- Identity continuity tracking
- SIMD optimizations (when available)
§Example
use nanosecond_scheduler::{Scheduler, Task, Config};
use std::time::Duration;
let config = Config::default();
let scheduler = Scheduler::new(config);
scheduler.schedule(Task::new(
|| { println!("Task executed!"); },
Duration::from_nanos(100)
));
// Just tick once for the example
scheduler.tick();Modules§
- bench_
utils - Benchmarking utilities and performance testing helpers
Structs§
- Config
- Scheduler configuration
- Metrics
- Performance metrics
- Scheduler
- The main nanosecond scheduler
- Task
- A schedulable task
- Timestamp
- High-precision timestamp using native or WASM timing
Enums§
- Priority
- Task priority for scheduling