aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-05-11 16:08:59 +0200
committerDan Gudmundsson <[email protected]>2011-05-11 16:08:59 +0200
commit40e1c9e3804919f74d16958c97cf74147ef5b08c (patch)
treeb2e675e2395cfa8a3f1ceb86bbde235d01180797 /lib/stdlib/doc/src
parent0a80859714d86191e17f84cf60833010b20655d0 (diff)
parent1d4472c3e6bad242c04ab5925ac12b3053ece323 (diff)
downloadotp-40e1c9e3804919f74d16958c97cf74147ef5b08c.tar.gz
otp-40e1c9e3804919f74d16958c97cf74147ef5b08c.tar.bz2
otp-40e1c9e3804919f74d16958c97cf74147ef5b08c.zip
Merge branch 'dgud/timer_tc/OTP-9169' into dev
* dgud/timer_tc/OTP-9169: Add timer:tc/1 which measures elapsed time for a fun/0
Diffstat (limited to 'lib/stdlib/doc/src')
-rw-r--r--lib/stdlib/doc/src/timer.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/stdlib/doc/src/timer.xml b/lib/stdlib/doc/src/timer.xml
index cae655f801..0baeff1db3 100644
--- a/lib/stdlib/doc/src/timer.xml
+++ b/lib/stdlib/doc/src/timer.xml
@@ -203,6 +203,7 @@
<func>
<name>tc(Module, Function, Arguments) -> {Time, Value}</name>
<name>tc(Fun, Arguments) -> {Time, Value}</name>
+ <name>tc(Fun) -> {Time, Value}</name>
<fsummary>Measure the real time it takes to evaluate <c>apply(Module,
Function, Arguments)</c> or <c>apply(Fun, Arguments)</c></fsummary>
<type>
@@ -218,7 +219,7 @@
<tag><c>tc/3</c></tag>
<item>
<p>Evaluates <c>apply(Module, Function, Arguments)</c> and measures
- the elapsed real time as reported by <c>now/0</c>.
+ the elapsed real time as reported by <c>os:timestamp/0</c>.
Returns <c>{Time, Value}</c>, where
<c>Time</c> is the elapsed real time in <em>microseconds</em>,
and <c>Value</c> is what is returned from the apply.</p>
@@ -228,6 +229,11 @@
<p>Evaluates <c>apply(Fun, Arguments)</c>. Otherwise works
like <c>tc/3</c>.</p>
</item>
+ <tag><c>tc/1</c></tag>
+ <item>
+ <p>Evaluates <c>Fun()</c>. Otherwise works like <c>tc/2</c>.</p>
+ </item>
+
</taglist>
</desc>
</func>