diff options
author | Lukas Larsson <[email protected]> | 2011-09-21 17:50:48 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-09-29 17:31:27 +0200 |
commit | f1f8e2ff2c7f53ae9de3c7bb27402f8cc6f8532a (patch) | |
tree | 042d39191cb4bc0d379df5474d518fb45372cb0e | |
parent | 4508c35b9b5af75fcdd730d479c19e75c5102ae2 (diff) | |
download | otp-f1f8e2ff2c7f53ae9de3c7bb27402f8cc6f8532a.tar.gz otp-f1f8e2ff2c7f53ae9de3c7bb27402f8cc6f8532a.tar.bz2 otp-f1f8e2ff2c7f53ae9de3c7bb27402f8cc6f8532a.zip |
Use now instead of os:timestamp
This is done in order to improve timing when testing
debug builds, especially ppc debug builds.
-rw-r--r-- | erts/emulator/test/busy_port_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
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), |