from PySide2.QtCore import QTime print(QTime.currentTime().msec())