Rev 43328 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/gc.time.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{gc.time}\alias{gc.time}\title{Report Time Spent in Garbage Collection}\description{This function reports the time spent in garbage collection so far inthe \R session while GC timing was enabled.}\usage{gc.time(on = TRUE)}\arguments{\item{on}{logical; if \code{TRUE}, GC timing is enabled.}}\value{A numerical vector of length 5 giving the user CPU time, the systemCPU time, the elapsed time and children's user and system CPU times(normally both zero), of time spent doing garbage collection whilstGC timing was enabled.}#ifdef windows\note{Times of child processes are not available and will always be given as\code{NA}.}#endif\section{Warnings}{This is experimental functionality, likely to be removed as soon asthe next release.The timings are rounded up by the sampling interval for timingprocesses, and so are likely to be over-estimates.}\seealso{\code{\link{gc}},\code{\link{proc.time}} for the timings for the session.}\examples{gc.time()}\keyword{utilities}