Implement FlushInterval

Needed when BufSizer > 0, otherwise the buffer may never be flushed.