Skip to content

Commit

Permalink
Merge branch 'optional-interval' of https://github.com/Qwiko/kea-expo…
Browse files Browse the repository at this point in the history
…rter into optional-interval
  • Loading branch information
Jakob Mellberg committed Mar 20, 2024
2 parents 4b2956f + 01a0540 commit 0386c93
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kea_exporter/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
from . import __project__, __version__


class Timer:
def __init__(self):
self.reset()

def reset(self):
self.start_time = time.time()

def time_elapsed(self):
now_time = time.time()
return now_time - self.start_time


class Timer:
def __init__(self):
self.reset()
Expand Down

0 comments on commit 0386c93

Please sign in to comment.