packagestatsimport"time"// Stopper calls Client.BumpSum and Client.BumpHistogram when End'edtypeStopperstruct{KeystringStarttime.TimeClientClient}// End the Stopperfunc(s*Stopper)End(){since:=time.Since(s.Start).Seconds()*1000.0s.Client.BumpSum(s.Key+".total",since)s.Client.BumpHistogram(s.Key,since)}