How to Extract Fit Time from Parsnip Models?

I ran into some unexpected trouble when trying to extract the fit time from parsnip models.
I was following this blog post:
https://www.simonpcouch.com/blog/2024-04-08-fit-time/

But at extract_fit_time(taxi_fit), I receive an error:

> extract_fit_time(taxi_fit)
Error in UseMethod("extract_fit_time") : 
  no applicable method for 'extract_fit_time' applied to an object of class "c('_xgb.Booster', 'model_fit')"

This suggests, that there is no S3Method for model_fit objects.
Until now, I did not manage to extract fit times for neither models nor workflows.
Am I missing something?

Just to give an example:

library(tidymodels)

linear_spec <- linear_reg(mode = "regression", engine = "glmnet", penalty = tune())

linear_wf <- workflow() %>%
  add_model(linear_spec) %>%
  add_formula(outcome ~ .)

sim_data <- modeldata::sim_regression(100)

splits <- vfold_cv(sim_data, 5)

tune_results <- tune_grid(linear_wf, splits, control = control_grid(save_pred = TRUE, extract = extract_fit_time))

collect_extracts(tune_results)

Error in UseMethod("extract_fit_time") : 
  no applicable method for 'extract_fit_time' applied to an object of class "workflow"