diff options
author | Rickard Green <[email protected]> | 2016-08-24 14:24:34 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2016-08-25 17:37:44 +0200 |
commit | fc85e401ee279cc3b69635a71ffa93544ce5b99d (patch) | |
tree | ebf32fa7ad9cd3f84f00c3ecc7c1e0710289f3c2 /erts/emulator/test/busy_port_SUITE.erl | |
parent | 412b5aaa5810cbac75ef41d29a36898ff1480129 (diff) | |
download | otp-fc85e401ee279cc3b69635a71ffa93544ce5b99d.tar.gz otp-fc85e401ee279cc3b69635a71ffa93544ce5b99d.tar.bz2 otp-fc85e401ee279cc3b69635a71ffa93544ce5b99d.zip |
Update test-cases to use new symbolic time units
Diffstat (limited to 'erts/emulator/test/busy_port_SUITE.erl')
-rw-r--r-- | erts/emulator/test/busy_port_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/test/busy_port_SUITE.erl b/erts/emulator/test/busy_port_SUITE.erl index bb0632ae08..7094cee992 100644 --- a/erts/emulator/test/busy_port_SUITE.erl +++ b/erts/emulator/test/busy_port_SUITE.erl @@ -469,12 +469,12 @@ hs_busy_pcmd(Prt, Opts, StartFun, EndFun) -> P = spawn_link(fun () -> erlang:yield(), Tester ! {self(), doing_port_command}, - Start = erlang:monotonic_time(micro_seconds), + Start = erlang:monotonic_time(microsecond), Res = try {return, port_command(Prt, [], Opts)} catch Exception:Error -> {Exception, Error} end, - End = erlang:monotonic_time(micro_seconds), + End = erlang:monotonic_time(microsecond), Time = round((End - Start)/1000), Tester ! {self(), port_command_result, Res, Time} end), @@ -717,7 +717,7 @@ run_command(_M,spawn,{Args,Opts}) -> run_command(M,spawn,Args) -> run_command(M,spawn,{Args,[]}); run_command(Mod,Func,Args) -> - erlang:display({{Mod,Func,Args}, erlang:system_time(micro_seconds)}), + erlang:display({{Mod,Func,Args}, erlang:system_time(microsecond)}), apply(Mod,Func,Args). validate_scenario(Data,[{print,Var}|T]) -> |