code: func translateTimerAttributes(d time.Duration) (attrs map[string]interface{}) {
  	attrs = make(map[string]interface{})
  	attrs[DisplayTransform] = fmt.Sprintf("x/%d", int64(d))
  	attrs[DisplayUnitsShort] = string(unitRegexp.Find([]byte(d.String())))
  	return
  }
docs: // a helper that turns a time.Duration into librato display attributes for timer metrics