diff options
author | Rickard Green <[email protected]> | 2016-09-29 17:27:37 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2016-09-29 17:27:37 +0200 |
commit | 4de2006a6fed05e6b524c56ad16b6e62a9d00817 (patch) | |
tree | 6fbcf7a565a4b5159c118bae3775230e0418252a /lib/compiler/src/compile.erl | |
parent | 830d1bf2e5acaad3c720a001ad338841993feacc (diff) | |
parent | 5e57b3faccba1ae66ebd40fed23f5770eee71b04 (diff) | |
download | otp-4de2006a6fed05e6b524c56ad16b6e62a9d00817.tar.gz otp-4de2006a6fed05e6b524c56ad16b6e62a9d00817.tar.bz2 otp-4de2006a6fed05e6b524c56ad16b6e62a9d00817.zip |
Merge branch 'rickard/time-unit/OTP-13831'
* rickard/time-unit/OTP-13831:
Replace usage of deprecated time units
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r-- | lib/compiler/src/compile.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl index 16621d9b43..e4fb703939 100644 --- a/lib/compiler/src/compile.erl +++ b/lib/compiler/src/compile.erl @@ -360,7 +360,7 @@ run_tc({Name,Fun}, St) -> T1 = erlang:monotonic_time(), Val = (catch Fun(St)), T2 = erlang:monotonic_time(), - Elapsed = erlang:convert_time_unit(T2 - T1, native, milli_seconds), + Elapsed = erlang:convert_time_unit(T2 - T1, native, millisecond), Mem0 = erts_debug:flat_size(Val)*erlang:system_info(wordsize), Mem = lists:flatten(io_lib:format("~.1f kB", [Mem0/1024])), io:format(" ~-30s: ~10.3f s ~12s\n", |