test_logging: diagnostic code changes.
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index f9488ce..f534cac 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -2057,6 +2057,7 @@
             # Failures occur on some systems for MIDNIGHT and W0.
             # Print detailed calculation for MIDNIGHT so we can try to see
             # what's going on
+            import time
             if when == 'MIDNIGHT':
                 try:
                     if rh.utc: