% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit.R
\name{extract_time.stanfit}
\alias{extract_time.stanfit}
\title{Extract the time elapsed when fitting the model.}
\usage{
\method{extract_time}{stanfit}(fit)
}
\arguments{
\item{fit}{An object returned by either \code{\link{draw_samples}} or \code{\link{optimizing}}.}
}
\value{
For objects fit via \code{\link{draw_samples}}, a named numeric matrix with two columns (warm-up and sample time) and one row per chain. For objects fit via \code{\link{optimizing}}, the system time elapsed.
}
\description{
Extract the time elapsed when fitting the model.
}
\keyword{internal}
