/* This function takes a byte length and a delta unit of time to compute the approximate bytes per second */
static ulong bytes_per_second(unsigned int len, ulong start_ms)
/* This function takes a byte length and a delta unit of time to compute the approximate bytes per second */
static ulong bytes_per_second(unsigned int len, ulong start_ms)
{
	if (len >= ((unsigned int) -1) / 1024)
		return len / (max(get_timer(start_ms) / 1024, 1UL));
	else
		return 1024 * len / max(get_timer(start_ms), 1UL);
}