Struct solana_sdk::timing::AtomicInterval [−][src]
pub struct AtomicInterval { /* fields omitted */ }
Implementations
true if ‘interval_time_ms’ has elapsed since last time we returned true as long as it has been ‘interval_time_ms’ since this struct was created
a primary use case is periodic metric reporting, potentially from different threads true if ‘interval_time_ms’ has elapsed since last time we returned true except, if skip_first=false, false until ‘interval_time_ms’ has elapsed since this struct was created
return ms elapsed since the last time the time was set
return ms until the interval_time will have elapsed
Trait Implementations
Returns the “default value” for a type. Read more