summaryrefslogtreecommitdiff
path: root/pysnmp/debug.py
diff options
context:
space:
mode:
authorelie <elie>2013-04-17 20:32:36 +0000
committerelie <elie>2013-04-17 20:32:36 +0000
commit32d35747ba1372afd03ca43fd9400e8a89d5f1d7 (patch)
treef24550fed4d4aa8117e0de173a26eaf0d55369d1 /pysnmp/debug.py
parentef144b9fe52919b8343a7a913543466e528b150d (diff)
downloadpysnmp-git-32d35747ba1372afd03ca43fd9400e8a89d5f1d7.tar.gz
format subseconds
Diffstat (limited to 'pysnmp/debug.py')
-rw-r--r--pysnmp/debug.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/debug.py b/pysnmp/debug.py
index ab002869..2dc33c06 100644
--- a/pysnmp/debug.py
+++ b/pysnmp/debug.py
@@ -65,7 +65,7 @@ class Debug:
def timestamp(self):
return time.strftime('%H:%M:%S', time.localtime()) + \
- '.%s' % int((time.time() % 1) * 1000)
+ '.%.3d' % int((time.time() % 1) * 1000)
# This will yield false from bitwise and with a flag, and save
# on unnecessary calls