time endpoint call with metrics.Timer(func())