solana_sdk::timing

Function duration_as_s

Source
pub fn duration_as_s(d: &Duration) -> f32
👎Deprecated since 2.1.0: Use Duration::as_secs_f32() directly