Skip to content

Instantly share code, notes, and snippets.

View alkasm's full-sized avatar

Alexander Reynolds alkasm

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."""