Skip to content

Instantly share code, notes, and snippets.

@dbf256
dbf256 / event_timer.py
Last active October 21, 2016 02:30
Event timer - simple time tracing for Python
import datetime
class EventTimer:
def __init__(self, name):
self.events = []
self.timer = None
self.name = name
def reset(self):