File: pause.Rd

package info (click to toggle)
r-cran-profvis 0.3.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 328 kB
  • sloc: javascript: 1,943; ansic: 41; sh: 13; makefile: 8
file content (22 lines) | stat: -rw-r--r-- 550 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pause.R
\name{pause}
\alias{pause}
\title{Pause an R process}
\usage{
pause(seconds)
}
\arguments{
\item{seconds}{Number of seconds to pause.}
}
\description{
This function pauses an R process for some amount of time. It differs from
\code{\link{Sys.sleep}} in that time spent in \code{pause} will show up in
profiler data. Another difference is that \code{pause} uses up 100% of a CPU,
whereas \code{Sys.sleep} does not.
}
\examples{
# Wait for 0.5 seconds
pause(0.5)

}