data-storage/src/piracyshield_data_storage/base.py
2024-01-19 16:01:41 +01:00

17 lines
297 B
Python

import time
class BaseStorage(DatabaseArangodbDocument):
start_counter = 0
stop_counter = 0
def __init__(self):
super().__init__()
def _start_counter(self):
self.start_counter = time.time()
def _stop_counter(self):
self.stop_counter = time.time()