aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/interactive_shell_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-05-26 14:08:39 +0200
committerBjörn Gustavsson <[email protected]>2015-05-27 04:51:11 +0200
commit5ab52ccbdd90ec7ab2a35294ca362f53e52fdf3d (patch)
tree1e1f81ee2a4e7b7d72a7cbc0ff0595826b4ce859 /lib/kernel/test/interactive_shell_SUITE.erl
parent2065d20e00a5e5d1e526768c3be33d5ff86d2b53 (diff)
downloadotp-5ab52ccbdd90ec7ab2a35294ca362f53e52fdf3d.tar.gz
otp-5ab52ccbdd90ec7ab2a35294ca362f53e52fdf3d.tar.bz2
otp-5ab52ccbdd90ec7ab2a35294ca362f53e52fdf3d.zip
Eliminate use of erlang:now/0 for measuring time
Diffstat (limited to 'lib/kernel/test/interactive_shell_SUITE.erl')
-rw-r--r--lib/kernel/test/interactive_shell_SUITE.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/kernel/test/interactive_shell_SUITE.erl b/lib/kernel/test/interactive_shell_SUITE.erl
index 3fb7c68886..89c574b025 100644
--- a/lib/kernel/test/interactive_shell_SUITE.erl
+++ b/lib/kernel/test/interactive_shell_SUITE.erl
@@ -718,8 +718,7 @@ toerl_loop(Port,Acc) ->
end.
millistamp() ->
- {Mega, Secs, Micros} = erlang:now(),
- (Micros div 1000) + Secs * 1000 + Mega * 1000000000.
+ erlang:monotonic_time(milli_seconds).
get_data_within(Port, X, Acc) when X =< 0 ->
?dbg({get_data_within, X, Acc, ?LINE}),