Skip to content

Commit

Permalink
Merge pull request #11319 from ScottPJones/spj/doctime
Browse files Browse the repository at this point in the history
Add @Timev, @timed documentation [av skip]
  • Loading branch information
tkelman committed May 18, 2015
2 parents 663dcae + f4f6c78 commit 91c8b9a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doc/stdlib/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,15 @@ System

.. function:: @time

A macro to execute an expression, printing the time it took to execute and the total number of bytes its execution caused to be allocated, before returning the value of the expression.
A macro to execute an expression, printing the time it took to execute, the number of allocations, and the total number of bytes its execution caused to be allocated, before returning the value of the expression.

.. function:: @timev

This is a verbose version of the ``@time`` macro, it first prints the same information as ``@time``, then any non-zero memory allocation counters, and then returns the value of the expression.

.. function:: @timed

A macro to execute an expression, and return the value of the expression, elapsed time, total bytes allocated, garbage collection time, and an object with various memory allocation counters.

.. function:: @elapsed

Expand Down

0 comments on commit 91c8b9a

Please sign in to comment.