diff options
author | Hans Bolinder <[email protected]> | 2011-08-15 14:44:24 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-08-15 14:44:24 +0200 |
commit | 79dbe6c9834fa21f37a169ca981a427e230aa49c (patch) | |
tree | 05dd64f788a85ac2838fa0e994b735891d7595bd /lib/stdlib/src | |
parent | 90fb6ccf9292c909a0639f3874b36a1805204bc8 (diff) | |
download | otp-79dbe6c9834fa21f37a169ca981a427e230aa49c.tar.gz otp-79dbe6c9834fa21f37a169ca981a427e230aa49c.tar.bz2 otp-79dbe6c9834fa21f37a169ca981a427e230aa49c.zip |
Correct the contract of timer:now_diff/2
The contract of timer:now_diff() has been corrected.
(Thanks to Alex Morarash).
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/timer.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/timer.erl b/lib/stdlib/src/timer.erl index e3d6c905b6..689e42051f 100644 --- a/lib/stdlib/src/timer.erl +++ b/lib/stdlib/src/timer.erl @@ -199,7 +199,7 @@ tc(M, F, A) -> %% Calculate the time difference (in microseconds) of two %% erlang:now() timestamps, T2-T1. %% --spec now_diff(T1, T2) -> Tdiff when +-spec now_diff(T2, T1) -> Tdiff when T1 :: erlang:timestamp(), T2 :: erlang:timestamp(), Tdiff :: integer(). |