Python Obtenez du temps des millisecondes
import time
def current_milli_time():
return round(time.time() * 1000)
Hash'J Programming
import time
def current_milli_time():
return round(time.time() * 1000)
import time
milliseconds = int(round(time.time() * 1000))
print(milliseconds)
>>> import datetime
>>> datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
'2011-11-03 18:21:26'