Functions for timing, as well as implementations of Stack and List structures.
tictoc package provides the timing functions
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.
toc are easy to use, and
are especially useful when timing several sections in more than a few lines
In general, calls to
toc start the timer when
tic call is made and stop the timer when the
toc call is
made, recording the elapsed time between the calls from
The default behavior is to print a simple message with the elapsed time in
The features include the following:
nesting of the
suppressing the default output with
quiet = TRUE
collecting the timings in user-defined variables
collecting the timings in a log structure provided by the package
providing a custom message for each
using custom callbacks for the
toc calls to redefine
the default behavior and/or add other functionality (such as logging to a database)
In addition, this package provides classes
List (implemented as a
both of which support operations
Copyright (C) Collective, Inc.; with portions Copyright (C) Jabiru Ventures LLC
Apache License, Version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.