diff options
author | Anders Svensson <[email protected]> | 2015-03-05 01:34:08 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2015-03-05 01:34:08 +0100 |
commit | 5e5b22215e3f0a60b7afc2393b3ef68892360b07 (patch) | |
tree | 1c0a2c3b66c6af9eae4ba6587b911681a075ae64 /lib/diameter/test/diameter_ct.erl | |
parent | a4df8f2e68ccef9936c5b43378a006099d81f801 (diff) | |
parent | eae8ecd1fd2ba33b1c81d0c19605047e2f317eda (diff) | |
download | otp-5e5b22215e3f0a60b7afc2393b3ef68892360b07.tar.gz otp-5e5b22215e3f0a60b7afc2393b3ef68892360b07.tar.bz2 otp-5e5b22215e3f0a60b7afc2393b3ef68892360b07.zip |
Merge branch 'anders/diameter/time/OTP-12439' into maint
* anders/diameter/time/OTP-12439:
Use new time api in test suites
Use new time api in implementation
Diffstat (limited to 'lib/diameter/test/diameter_ct.erl')
-rw-r--r-- | lib/diameter/test/diameter_ct.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/diameter/test/diameter_ct.erl b/lib/diameter/test/diameter_ct.erl index ed2f884681..85c502ea7f 100644 --- a/lib/diameter/test/diameter_ct.erl +++ b/lib/diameter/test/diameter_ct.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2010-2013. All Rights Reserved. +%% Copyright Ericsson AB 2010-2015. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -43,7 +43,7 @@ ct_run(Opts) -> info(Start , info()). info() -> - [{time, now()}, + [{time, diameter_lib:now()}, {process_count, erlang:system_info(process_count)} | erlang:memory()]. @@ -56,6 +56,6 @@ info(L0, L1) -> io:format("INFO: ~p~n", [Diff]). diff(time, T0, T1) -> - timer:now_diff(T1, T0); + diameter_lib:micro_diff(T1, T0); diff(_, N0, N1) -> N1 - N0. |