func AddResponse(start time.Time) {
	duration := time.Since(start)
	duration_ns := uint64(duration.Nanoseconds())

	stat_lock.Lock()
	response_count++
	last_response = time.Now()
	new_average_response := average_response*(float64((response_count-1))/float64(response_count)) +
		float64(duration_ns/response_count)
	average_response = new_average_response
	if duration_ns > longest_response {
		longest_response = duration_ns
	}
	if duration_ns < shortest_response && duration_ns != 0 {
		shortest_response = duration_ns
	}
	stat_lock.Unlock()
}
// AddResponse will add the stat information for a response to the totals.
AddResponse will add the stat information for a response to the totals.
// AddResponse will add the stat information for a response to the totals .
func AddResponse(start time.Time) {
	duration := time.Since(start)
	duration_ns := uint64(duration.Nanoseconds())
	stat_lock.Lock()
	response_count++
	last_response = time.Now()
	new_average_response := average_response*(float64((response_count-1))/float64(response_count)) +
		float64(duration_ns/response_count)
	average_response = new_average_response
	if duration_ns > longest_response {
		longest_response = duration_ns
	}
	if duration_ns < shortest_response && duration_ns != 0 {
		shortest_response = duration_ns
	}
	stat_lock.Unlock()
}
func AddResponse ( start time . Time ) { duration := time . Since ( start ) duration_ns := uint64 ( duration . Nanoseconds ( ) ) stat_lock . Lock ( ) response_count ++ last_response = time . Now ( ) new_average_response := average_response * ( float64 ( ( response_count - 1 ) ) / float64 ( response_count ) ) + float64 ( duration_ns / response_count ) average_response = new_average_response if duration_ns > longest_response { longest_response = duration_ns } if duration_ns < shortest_response && duration_ns != 0 { shortest_response = duration_ns } stat_lock . Unlock ( ) }
AddResponse will add the stat information for a response to the totals.
AddResponse will add the stat information for a response to the totals .