aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms/timer.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-23 07:32:18 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-23 07:32:18 +0300
commit0d25b5d6957d76bab486e2279c99e130c19d5c31 (patch)
treec8c7d6fe4766470bda03e49a004afaa03c967b16 /algorithms/timer.py
parentTravis: add badge to README (diff)
downloadsorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.tar.gz
sorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.zip
pylint/pep8 fixes
Diffstat (limited to 'algorithms/timer.py')
-rw-r--r--algorithms/timer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/algorithms/timer.py b/algorithms/timer.py
index bd5d044..c567a3f 100644
--- a/algorithms/timer.py
+++ b/algorithms/timer.py
@@ -6,9 +6,11 @@
import gc
import time
+
def get_timestamp():
return time.perf_counter()
+
class Timer:
def __init__(self, dest, iterations=1):
self._dest = dest