Function should_perform_full_reset_ns

Source
pub const fn should_perform_full_reset_ns(
    elapsed_ns: u64,
    window_ns: u64,
) -> bool
Expand description

Check if enough time has passed for a full window reset (nanosecond version)

§Arguments

  • elapsed_ns - Nanoseconds elapsed since last refresh
  • window_ns - Duration of the rate limiting window in nanoseconds

§Returns

True if a full window reset should occur