music-kraken-core/music_kraken/utils/functions.py
2024-04-09 10:32:17 +02:00

12 lines
223 B
Python

import os
from datetime import datetime
def clear_console():
os.system('cls' if os.name in ('nt', 'dos') else 'clear')
def get_current_millis() -> int:
dt = datetime.now()
return int(dt.microsecond / 1_000)