feat: default implementation for options that should be sufficient

This commit is contained in:
2024-04-29 13:43:34 +02:00
parent a451a97e1c
commit 1ad62df0ab
4 changed files with 27 additions and 7 deletions

View File

@@ -71,6 +71,12 @@ def object_trace(obj):
misc functions
"""
_auto_increment = 0
def generate_id() -> int:
global _auto_increment
_auto_increment += 1
return _auto_increment
def get_current_millis() -> int:
dt = datetime.now()
return int(dt.microsecond / 1_000)