import time milli_sec = int(round(time.time() * 1000)) print(milli_sec)