https://github.com/cran/microbenchmark
Raw File
Tip revision: c05a126b928efa99455c3f01b7fdebd5a1970256 authored by Olaf Mersmann on 19 October 2011, 00:00:00 UTC
version 1.1-3
Tip revision: c05a126
convert_to_unit.Rd
\name{convert_to_unit}
\alias{convert_to_unit}
\title{Convert timings to different units.}
\usage{convert_to_unit(x, unit=c("ns", "us", "ms", "s", "t", "hz", "khz", "mhz", "eps", "f"))
}
\description{Convert timings to different units.}
\details{The following units of time are supported \describe{
\item{\dQuote{ns}}{Nanoseconds.}
\item{\dQuote{us}}{Microseconds.}
\item{\dQuote{ms}}{Milliseconds.}
\item{\dQuote{s}}{Seconds.}
\item{\dQuote{t}}{Appropriately prefixed time unit.}
\item{\dQuote{hz}}{Hertz / evaluations per second.}
\item{\dQuote{eps}}{Evaluations per second / Hertz.}
\item{\dQuote{khz}}{Kilohertz / 1000s of evaluations per second.}
\item{\dQuote{mhz}}{Megahertz / 1000000s of evaluations per second.}
\item{\dQuote{f}}{Appropriately prefixed frequency unit.}
}}
\value{A matrix containing the converted time values with an
attribute \code{unit} which is a printable name of the unit of
time.}
\author{Olaf Mersmann \email{olafm@datensplitter.net}}
\arguments{\item{x}{An \code{microbenchmark} object.}
\item{unit}{A unit of time. See details.}
}

back to top