flush the buffer if it has been 1 second since the end of last event