diff options
author | Anders Svensson <[email protected]> | 2015-08-04 23:46:29 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2015-08-05 10:17:19 +0200 |
commit | 96d63dca845e18f86488db9d8dfb33eb76ad0467 (patch) | |
tree | 5a7b1f6f5f1fd84ff21b6280c04fc8f9a3be5cd0 /lib/diameter/test/diameter_examples_SUITE.erl | |
parent | 9c0f2f2ce3ed040b3963d5b00cad0276c276d590 (diff) | |
download | otp-96d63dca845e18f86488db9d8dfb33eb76ad0467.tar.gz otp-96d63dca845e18f86488db9d8dfb33eb76ad0467.tar.bz2 otp-96d63dca845e18f86488db9d8dfb33eb76ad0467.zip |
Simplify time manipulation
By doing away with more wrapping that the parent commit started to
remove.
Diffstat (limited to 'lib/diameter/test/diameter_examples_SUITE.erl')
-rw-r--r-- | lib/diameter/test/diameter_examples_SUITE.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/diameter/test/diameter_examples_SUITE.erl b/lib/diameter/test/diameter_examples_SUITE.erl index ef8e459175..dc0b466b59 100644 --- a/lib/diameter/test/diameter_examples_SUITE.erl +++ b/lib/diameter/test/diameter_examples_SUITE.erl @@ -295,15 +295,15 @@ slave() -> [{timetrap, {minutes, 10}}]. slave(_) -> - T0 = diameter_lib:now(), + T0 = now(), {ok, Node} = ct_slave:start(?MODULE, ?TIMEOUTS), - T1 = diameter_lib:now(), + T1 = now(), T2 = rpc:call(Node, erlang, now, []), {ok, Node} = ct_slave:stop(?MODULE), - now_diff([T0, T1, T2, diameter_lib:now()]). + now_diff([T0, T1, T2, now()]). now_diff([T1,T2|_] = Ts) -> - [diameter_lib:micro_diff(T2,T1) | now_diff(tl(Ts))]; + [timer:now_diff(T2,T1) | now_diff(tl(Ts))]; now_diff(_) -> []. |