// Reduces the precision of the beats to the specified time value.
Reduces the precision of the beats to the specified time value.
// Reduces the precision of the beats to the specified time value .
func (beats *Beats) Round(precision time.Duration) {
	if beats != nil {
		beats.Offset = beats.Offset.Round(precision)
		for i, b := range beats.Beats {
			beats.Beats[i].At = b.At.Round(precision)
			beats.Beats[i].Mean = b.Mean.Round(precision)
			beats.Beats[i].Variance = b.Variance.Round(precision)
			for j, tap := range b.Taps {
				beats.Beats[i].Taps[j] = tap.Round(precision)
			}
		}
	}
}
func ( beats * Beats ) Round ( precision time . Duration ) { if beats != nil { beats . Offset = beats . Offset . Round ( precision ) for i , b := range beats . Beats { beats . Beats [ i ] . At = b . At . Round ( precision ) beats . Beats [ i ] . Mean = b . Mean . Round ( precision ) beats . Beats [ i ] . Variance = b . Variance . Round ( precision ) for j , tap := range b . Taps { beats . Beats [ i ] . Taps [ j ] = tap . Round ( precision ) } } } }
Reduces the precision of the beats to the specified time value.
Reduces the precision of the beats to the specified time value .