WordPress at a glance
function is not described

wp_throttle_comment_flood() WP 2.1.0

Whether a comment should be blocked because of comment flood.

No Hooks.

Return

true|false. Whether comment should be blocked.

Usage

wp_throttle_comment_flood( $block, $time_lastcomment, $time_newcomment );
$block(true|false) (required)
Whether plugin has already blocked comment.
$time_lastcomment(int) (required)
Timestamp for last comment.
$time_newcomment(int) (required)
Timestamp for new comment.

Changelog

Since 2.1.0 Introduced.

Code of wp_throttle_comment_flood() WP 5.7.2

<?php
function wp_throttle_comment_flood( $block, $time_lastcomment, $time_newcomment ) {
	if ( $block ) { // A plugin has already blocked... we'll let that decision stand.
		return $block;
	}
	if ( ( $time_newcomment - $time_lastcomment ) < 15 ) {
		return true;
	}
	return false;
}