Learn R Programming

PopED (version 0.7.0)

toc: Timer function (as in MATLAB)

Description

Function to stop a timer. Start with tic().

Usage

toc(echo = TRUE, name = ".poped_savedTime")

Arguments

echo

Print time to screen?

name

The saved name of the time object.

See Also

Other MATLAB: cell(), diag_matlab(), feval(), fileparts(), isempty(), ones(), rand(), randn(), size(), tic(), zeros()

Examples

Run this code

tic()
toc()

tic(name="foo")
toc()
tic()
toc()
toc()
tic()
toc(name="foo")

Run the code above in your browser using DataLab