aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/timer_simple_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-03-26 16:16:27 +0100
committerBjörn Gustavsson <[email protected]>2015-04-10 12:33:24 +0200
commita749ef2bafd3f5580b770a51931a3bc32f9404a9 (patch)
tree68ba25b199dc84f347d2e9e71aba3d9198703b73 /lib/stdlib/test/timer_simple_SUITE.erl
parente13c6510763f24dec76b1ce66b86ebbf7a84816d (diff)
downloadotp-a749ef2bafd3f5580b770a51931a3bc32f9404a9.tar.gz
otp-a749ef2bafd3f5580b770a51931a3bc32f9404a9.tar.bz2
otp-a749ef2bafd3f5580b770a51931a3bc32f9404a9.zip
Eliminate use of deprecated now/0 for measuring time
Use erlang:monotonic_time/1 instead of now/0.
Diffstat (limited to 'lib/stdlib/test/timer_simple_SUITE.erl')
-rw-r--r--lib/stdlib/test/timer_simple_SUITE.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/stdlib/test/timer_simple_SUITE.erl b/lib/stdlib/test/timer_simple_SUITE.erl
index 917624b56b..3c7e3c5f25 100644
--- a/lib/stdlib/test/timer_simple_SUITE.erl
+++ b/lib/stdlib/test/timer_simple_SUITE.erl
@@ -482,8 +482,7 @@ append([],X) ->
X.
system_time() ->
- {M,S,U} = erlang:now(),
- 1000000*(M*1000000 + S) + U.
+ erlang:monotonic_time(micro_seconds).
%% ------------------------------------------------------- %%