aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_ct.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-08-04 23:46:29 +0200
committerAnders Svensson <[email protected]>2015-08-05 10:17:19 +0200
commit96d63dca845e18f86488db9d8dfb33eb76ad0467 (patch)
tree5a7b1f6f5f1fd84ff21b6280c04fc8f9a3be5cd0 /lib/diameter/test/diameter_ct.erl
parent9c0f2f2ce3ed040b3963d5b00cad0276c276d590 (diff)
downloadotp-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_ct.erl')
-rw-r--r--lib/diameter/test/diameter_ct.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_ct.erl b/lib/diameter/test/diameter_ct.erl
index 85c502ea7f..788cbbbe3e 100644
--- a/lib/diameter/test/diameter_ct.erl
+++ b/lib/diameter/test/diameter_ct.erl
@@ -43,7 +43,7 @@ ct_run(Opts) ->
info(Start , info()).
info() ->
- [{time, diameter_lib:now()},
+ [{time, 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) ->
- diameter_lib:micro_diff(T1, T0);
+ timer:now_diff(T1, T0);
diff(_, N0, N1) ->
N1 - N0.