aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2015-11-13 21:56:30 +0100
committerIngela Anderton Andin <[email protected]>2015-12-03 14:45:27 +0100
commit5e95fdff6589432327e38415fc9c5545231e7961 (patch)
tree6f4eec5566bb8a5142c76b3c2b9841abe3271aad /lib/ssl/src/dtls_connection.erl
parentc2548c79af951a8628b3e44de79652bc923188f0 (diff)
downloadotp-5e95fdff6589432327e38415fc9c5545231e7961.tar.gz
otp-5e95fdff6589432327e38415fc9c5545231e7961.tar.bz2
otp-5e95fdff6589432327e38415fc9c5545231e7961.zip
ssl: Measure elapsed time with erlang:monotonic_time
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index 78662e0ea2..153d3fef48 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -145,7 +145,7 @@ init([Role, Host, Port, Socket, {SSLOpts0, _} = Options, User, CbInfo]) ->
process_flag(trap_exit, true),
State0 = initial_state(Role, Host, Port, Socket, Options, User, CbInfo),
Handshake = ssl_handshake:init_handshake_history(),
- TimeStamp = calendar:datetime_to_gregorian_seconds({date(), time()}),
+ TimeStamp = erlang:monotonic_time(),
try ssl_config:init(SSLOpts0, Role) of
{ok, Ref, CertDbHandle, FileRefHandle, CacheHandle, CRLDbInfo, OwnCert, Key, DHParams} ->
Session = State0#state.session,