aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_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/ssl_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/ssl_connection.erl')
-rw-r--r--lib/ssl/src/ssl_connection.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index 12a56df69f..241871dc38 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -974,7 +974,7 @@ ssl_config(Opts, Role, State) ->
{ok, Ref, CertDbHandle, FileRefHandle, CacheHandle, CRLDbInfo, OwnCert, Key, DHParams} =
ssl_config:init(Opts, Role),
Handshake = ssl_handshake:init_handshake_history(),
- TimeStamp = calendar:datetime_to_gregorian_seconds({date(), time()}),
+ TimeStamp = erlang:monotonic_time(),
Session = State#state.session,
State#state{tls_handshake_history = Handshake,
session = Session#session{own_certificate = OwnCert,