tictocR Documentation

Package tictoc.

Description

Functions for timing, as well as implementations of Stack and List structures.

Details

The tictoc package provides the timing functions tic and toc that can be nested. It provides an alternative to system.time() with a different syntax similar to that in another well-known software package. tic and toc are easy to use, and are especially useful when timing several sections in more than a few lines of code.

In general, calls to tic and toc start the timer when the tic call is made and stop the timer when the toc call is made, recording the elapsed time between the calls from proc.time. The default behavior is to print a simple message with the elapsed time in the toc call.

The features include the following:

In addition, this package provides classes Stack (implemented as a vector) and List (implemented as a list), both of which support operations push, pop, first, last, clear and size.

Copyright

Copyright (C) Collective, Inc.

License

Apache License, Version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0

Documentation

See tictoc package page on CRAN.

URL

http://github.com/collectivemedia/tictoc

Installation

Install released version from CRAN

install.packages("tictoc")
or
install.packages("tictoc", type = "source")

Install most recent version from github

library(devtools); devtools::install_github("collectivemedia/tictoc")

Author(s)

Sergei Izrailev, please contact at email stored at http://scr.im/izrg

See Also

Stack and tic, toc, tic.clear, tic.clearlog, tic.log