Learn R Programming

PopED (version 0.3.2)

tic: Timer function (as in MATLAB)

Description

Funtion to start a timer. Stop with toc().

Usage

tic(gcFirst = FALSE, name = ".poped_savedTime")

Arguments

gcFirst

Perform garbage collection?

name

The saved name of the time object.

See Also

Other MATLAB: cell, diag_matlab, feval, fileparts, isempty, isfield, ones, randn, randperm, rand, size, toc, zeros

Examples

Run this code
# NOT RUN {
tic()
toc()

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

Run the code above in your browser using DataLab