etime {lazy.tools}R Documentation

Elapsed Time

Description

This program calculates the elapsed time between concecutive calls.

Usage

etime(opt = 0)

Arguments

opt

= 0 to reset the clock
= 1 to print the elapsed time.
= 2 to print the elapsed time and reset the clock.

Details

A global variable ..start.. is used.

Value

etime in seconds.

Examples

etime(0)
x=rnorm(10000000)
etime(1)
x=rnorm(10000000)
etime(2)
x=rnorm(10000000)
etime(1)
rm(x)


[Package lazy.tools version 0.1.3 Index]