From f1f8e2ff2c7f53ae9de3c7bb27402f8cc6f8532a Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Wed, 21 Sep 2011 17:50:48 +0200 Subject: Use now instead of os:timestamp This is done in order to improve timing when testing debug builds, especially ppc debug builds. --- erts/emulator/test/busy_port_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'erts/emulator/test/busy_port_SUITE.erl') diff --git a/erts/emulator/test/busy_port_SUITE.erl b/erts/emulator/test/busy_port_SUITE.erl index 8365e1c540..2cb01f5a8c 100644 --- a/erts/emulator/test/busy_port_SUITE.erl +++ b/erts/emulator/test/busy_port_SUITE.erl @@ -495,12 +495,12 @@ hs_busy_pcmd(Prt, Opts, StartFun, EndFun) -> P = spawn_link(fun () -> erlang:yield(), Tester ! {self(), doing_port_command}, - Start = os:timestamp(), + Start = now(), Res = try {return, port_command(Prt, [], Opts)} catch Exception:Error -> {Exception, Error} end, - End = os:timestamp(), + End = now(), Time = round(timer:now_diff(End, Start)/1000), Tester ! {self(), port_command_result, Res, Time} end), -- cgit v1.2.3