Skip to main content

secs

Function secs 

Source
pub fn secs(range: Range<u64>) -> Duration
Expand description

Generates a Duration with a random whole-second length.

The number of seconds is sampled uniformly from the supplied half-open range. An invalid or empty range panics.