This package provides the timing functions tic
and toc
that can be nested. One can record all timings while a complex script is running, and examine the values later. It is also possible to instrument the timing call with custom callbacks. In addition, this package provides class 'Stack', implemented as a vector, and class 'List', implemented as a list, both of whic support operations 'push', 'pop', 'first', 'last' and 'clear'.
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.