diff options
| author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-23 07:32:18 +0300 |
|---|---|---|
| committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-23 07:32:18 +0300 |
| commit | 0d25b5d6957d76bab486e2279c99e130c19d5c31 (patch) | |
| tree | c8c7d6fe4766470bda03e49a004afaa03c967b16 /algorithms/timer.py | |
| parent | Travis: add badge to README (diff) | |
| download | sorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.tar.gz sorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.zip | |
pylint/pep8 fixes
Diffstat (limited to 'algorithms/timer.py')
| -rw-r--r-- | algorithms/timer.py | 2 |
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 |
