code: func recordDuration(start time.Time, name string, ctx *workflowContext) {
  	elapsed := time.Since(start)
  	ctx.transaction.stepDurations = append(ctx.transaction.stepDurations,
  		&workflowStepDuration{
  			name:     name,
  			duration: elapsed,
  		})
  }
docs: // recordDuration is a utility function to record how long