diff --git a/python-stdlib/logging/logging.py b/python-stdlib/logging/logging.py index f4874df7d..85fc77124 100644 --- a/python-stdlib/logging/logging.py +++ b/python-stdlib/logging/logging.py @@ -36,6 +36,7 @@ def set(self, name, level, message): self.ct = time.time() self.msecs = int((self.ct - int(self.ct)) * 1000) self.asctime = None + self.ticks = time.ticks_ms() class Handler: @@ -102,6 +103,7 @@ def format(self, record): "msecs": record.msecs, "asctime": record.asctime, "levelname": record.levelname, + "ticks": record.ticks, }