feat: default implementation for options that should be sufficient
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user