diff options
author | Brad Warren <bmw@eff.org> | 2019-03-02 05:20:31 +0300 |
---|---|---|
committer | Brad Warren <bmw@eff.org> | 2019-03-02 05:20:31 +0300 |
commit | 0396ce8efb561eabafc922b21910d266747116cb (patch) | |
tree | da7a0625ae49dcb029e25e7fb68f8c47fa574250 | |
parent | 6ff101dcbbe66943487633391a4f03f27bcc6aaa (diff) |
timeittimeit
-rw-r--r-- | certbot/cert_manager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/certbot/cert_manager.py b/certbot/cert_manager.py index 2a67f8765..88d3f8b81 100644 --- a/certbot/cert_manager.py +++ b/certbot/cert_manager.py @@ -261,6 +261,8 @@ def human_readable_cert_info(config, cert, skip_filter_checks=False): reasons = [] if cert.is_test_cert: reasons.append('TEST_CERT') + import timeit + print(timeit.timeit('cert.target_expiry', globals=locals())) if cert.target_expiry <= now: reasons.append('EXPIRED') if checker.ocsp_revoked(cert.cert, cert.chain): |