Learn R Programming

CINOEDV (version 2.0)

toc: Read elasped time from stopwatch

Description

toc reads the elasped time from the stopwatch timer started by the tic function. The function reads the internal time at the execution of the toc command, and displays the elapsed time since the most recent call to the tic function that had no output, in seconds.

Usage

toc()

Arguments

Value

None

References

None

Examples

Run this code
tic()
Sys.sleep(2)
toc()

Run the code above in your browser using DataLab