pub fn get_bar_interval(bar_type: &BarType) -> SignedDurationExpand description
Returns the bar interval as a [SignedDuration].
ยงPanics
Panics if the aggregation method of the given bar_type is not time based,
or if step is too large for the interval arithmetic.