Module time

Module time 

Source
Expand description

Time management and timer interrupt handling.

This module provides timer interrupt handling, time slice accounting, and preemption support for the threading system.

Re-exports§

pub use tick::TickCounter;
pub use tick::TimeSlice;
pub use timer::Timer;
pub use timer::TimerConfig;
pub use timer::TimerError;
pub use timer::PreemptGuard;
pub use timer::IrqGuard;

Modules§

tick
Tick counting and time slice management.
timer
Timer configuration and interrupt management.

Structs§

Duration
A duration of time.
Instant
Nanoseconds since some arbitrary epoch.

Constants§

DEFAULT_QUANTUM_NS
Default quantum duration in nanoseconds (1ms).
TIMER_FREQUENCY_HZ
Frequency in Hz for timer interrupts.

Functions§

get_monotonic_time
Get monotonic time - alias for Instant::now() for compatibility