diff options
author | Micael Karlberg <[email protected]> | 2019-02-07 12:05:32 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-02-22 19:45:52 +0100 |
commit | 8aa6b2ca02b6f08fd66178209317fa5ac658a88a (patch) | |
tree | 41e4ff9b2d944e630e12ca680fb6208b25ede50e /erts/emulator/test/socket_test_ttest_lib.erl | |
parent | e4156fe240367b4ccad36277ff05d97ac0cb2a32 (diff) | |
download | otp-8aa6b2ca02b6f08fd66178209317fa5ac658a88a.tar.gz otp-8aa6b2ca02b6f08fd66178209317fa5ac658a88a.tar.bz2 otp-8aa6b2ca02b6f08fd66178209317fa5ac658a88a.zip |
[socket|test] Some improvements to (esock) ttest
Add a quiet mode for ttest which is used when running in
a (terminal) shell.
Moved the esock-ttest script(s) into their own directory.
Minor improvements to the (client) result printout.
Also fixed copyright (end) dates.
OTP-14831
Diffstat (limited to 'erts/emulator/test/socket_test_ttest_lib.erl')
-rw-r--r-- | erts/emulator/test/socket_test_ttest_lib.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/test/socket_test_ttest_lib.erl b/erts/emulator/test/socket_test_ttest_lib.erl index 71679bc6d6..7fc13df46a 100644 --- a/erts/emulator/test/socket_test_ttest_lib.erl +++ b/erts/emulator/test/socket_test_ttest_lib.erl @@ -56,8 +56,10 @@ format_timestamp({_N1, _N2, N3} = TS) -> %% Time is always in number os ms (milli seconds) %% At some point, we should convert this to a more readable format... +format_time(T) when (T < 1000) -> + format("~w ms", [T]); format_time(T) -> - format("~p", [T]). + format("~w sec (~w ms)", [T div 1000, T]). formated_process_stats(Pid) -> |