Skip to content

Instantly share code, notes, and snippets.

View alkasm's full-sized avatar
🔔
never send to know for whom select polls; it polls for thee

Alexander Reynolds alkasm

🔔
never send to know for whom select polls; it polls for thee
View GitHub Profile
@alkasm
alkasm / timer.py
Last active July 29, 2019 23:17 — forked from bradmontgomery/LICENSE.txt
A python decorator that logs execution time.
from functools import wraps
import logging
import time
logger = logging.getLogger(__name__)
def timed(func):
"""This decoratorlogs the execution time for the decorated function."""