\Header{gc.time}{Report Time Spent in Garbage Collection}
\keyword{utilities}{gc.time}
\begin{Description}\relax
This function reports the time spent in garbage collection so far in
the \R{} session while GC timing was enabled..
\end{Description}
\begin{Usage}
\begin{verbatim}
gc.time(on = TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{on}] logical; if \code{TRUE}, GC timing is enabled.
\end{ldescription}
\end{Arguments}
\begin{Value}
A numerical vector of length 5 giving the user CPU time, the system
CPU time, the elapsed time and children's user and system CPU times
(normally both zero).
\end{Value}
\begin{Section}{Warnings}
This is experimental functionality, likely to be removed as soon as
the next release.

The timings are rounded up by the sampling interval for timing
processes, and so are likely to be over-estimates.
\end{Section}
\begin{SeeAlso}\relax
\code{\Link{gc}},
\code{\Link{proc.time}} for the timings for the session.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
gc.time()
\end{ExampleCode}
\end{Examples}

