func (s *Periodically) ShouldFlush(moment Moment, t time.Time) bool {
	if moment == Starting {
		now := time.Now()
		if s.lastFlush.Add(s.interval).Before(now) {
			s.lastFlush = now
			return true
		}
	}
	return false
}
// ShouldFlush returns true if this strategy want to flush at the given moment.
ShouldFlush returns true if this strategy want to flush at the given moment.
// ShouldFlush returns true if this strategy want to flush at the given moment .
func (s *Periodically) ShouldFlush(moment Moment, t time.Time) bool {
	if moment == Starting {
		now := time.Now()
		if s.lastFlush.Add(s.interval).Before(now) {
			s.lastFlush = now
			return true
		}
	}
	return false
}
func ( s * Periodically ) ShouldFlush ( moment Moment , t time . Time ) bool { if moment == Starting { now := time . Now ( ) if s . lastFlush . Add ( s . interval ) . Before ( now ) { s . lastFlush = now return true } } return false }
ShouldFlush returns true if this strategy want to flush at the given moment.
ShouldFlush returns true if this strategy want to flush at the given moment .