func GetSummary() Summary {
	n := time.Since(bbpd_start)
	stat_lock.RLock()
	longest_response_ms := float64(longest_response) / 1000000
	average_response_ms := float64(average_response) / 1000000
	l := "no requests made yet"
	if response_count > 0 {
		l = fmt.Sprintf("%v, (%v ago)", last_response, time.Since(last_response))
	}
	stat_lock.RUnlock()
	return Summary{
		StartTime:       fmt.Sprintf("%v", bbpd_start),
		RunningTime:     fmt.Sprintf("%s", n.String()),
		LongestResponse: fmt.Sprintf("%.2fms", longest_response_ms),
		AverageResponse: fmt.Sprintf("%.2fms", average_response_ms),
		LastResponse:    fmt.Sprintf("%v", l),
		ResponseCount:   fmt.Sprintf("%d", response_count),
	}
}
// GetSummary returns a struct of formatted strings that provide human-readable run stats.
GetSummary returns a struct of formatted strings that provide human-readable run stats.
// GetSummary returns a struct of formatted strings that provide human - readable run stats .
func GetSummary() Summary {
	n := time.Since(bbpd_start)
	stat_lock.RLock()
	longest_response_ms := float64(longest_response) / 1000000
	average_response_ms := float64(average_response) / 1000000
	l := "no requests made yet"
	if response_count > 0 {
		l = fmt.Sprintf("%v, (%v ago)", last_response, time.Since(last_response))
	}
	stat_lock.RUnlock()
	return Summary{
		StartTime:       fmt.Sprintf("%v", bbpd_start),
		RunningTime:     fmt.Sprintf("%s", n.String()),
		LongestResponse: fmt.Sprintf("%.2fms", longest_response_ms),
		AverageResponse: fmt.Sprintf("%.2fms", average_response_ms),
		LastResponse:    fmt.Sprintf("%v", l),
		ResponseCount:   fmt.Sprintf("%d", response_count),
	}
}
func GetSummary ( ) Summary { n := time . Since ( bbpd_start ) stat_lock . RLock ( ) longest_response_ms := float64 ( longest_response ) / 1000000 average_response_ms := float64 ( average_response ) / 1000000 l := " " if response_count > 0 { l = fmt . Sprintf ( " " , last_response , time . Since ( last_response ) ) } stat_lock . RUnlock ( ) return Summary { StartTime : fmt . Sprintf ( " " , bbpd_start ) , RunningTime : fmt . Sprintf ( " " , n . String ( ) ) , LongestResponse : fmt . Sprintf ( " " , longest_response_ms ) , AverageResponse : fmt . Sprintf ( " " , average_response_ms ) , LastResponse : fmt . Sprintf ( " " , l ) , ResponseCount : fmt . Sprintf ( " " , response_count ) , } }
GetSummary returns a struct of formatted strings that provide human-readable run stats.
GetSummary returns a struct of formatted strings that provide human - readable run stats .