diff options
author | Rickard Green <[email protected]> | 2016-08-24 15:57:53 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2016-08-25 17:37:44 +0200 |
commit | 5e57b3faccba1ae66ebd40fed23f5770eee71b04 (patch) | |
tree | b7eb1632247fa179bd852177f4c02980d5571a6a /lib/stdlib/src/timer.erl | |
parent | fc85e401ee279cc3b69635a71ffa93544ce5b99d (diff) | |
download | otp-5e57b3faccba1ae66ebd40fed23f5770eee71b04.tar.gz otp-5e57b3faccba1ae66ebd40fed23f5770eee71b04.tar.bz2 otp-5e57b3faccba1ae66ebd40fed23f5770eee71b04.zip |
Replace usage of deprecated time units
Diffstat (limited to 'lib/stdlib/src/timer.erl')
-rw-r--r-- | lib/stdlib/src/timer.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stdlib/src/timer.erl b/lib/stdlib/src/timer.erl index ca868627a9..df10790ea0 100644 --- a/lib/stdlib/src/timer.erl +++ b/lib/stdlib/src/timer.erl @@ -165,7 +165,7 @@ tc(F) -> T1 = erlang:monotonic_time(), Val = F(), T2 = erlang:monotonic_time(), - Time = erlang:convert_time_unit(T2 - T1, native, micro_seconds), + Time = erlang:convert_time_unit(T2 - T1, native, microsecond), {Time, Val}. %% @@ -180,7 +180,7 @@ tc(F, A) -> T1 = erlang:monotonic_time(), Val = apply(F, A), T2 = erlang:monotonic_time(), - Time = erlang:convert_time_unit(T2 - T1, native, micro_seconds), + Time = erlang:convert_time_unit(T2 - T1, native, microsecond), {Time, Val}. %% @@ -196,7 +196,7 @@ tc(M, F, A) -> T1 = erlang:monotonic_time(), Val = apply(M, F, A), T2 = erlang:monotonic_time(), - Time = erlang:convert_time_unit(T2 - T1, native, micro_seconds), + Time = erlang:convert_time_unit(T2 - T1, native, microsecond), {Time, Val}. %% |