Extract the time elapsed when fitting the model.

extract_time(fit)

Arguments

fit

An object returned by either draw_samples or optimizing.

Value

For objects fit via draw_samples, a named numeric matrix with two columns (warm-up and sample time) and one row per chain. For objects fit via optimizing, the system time elapsed.