📌  相关文章
📜  python 以毫秒为单位获取时间差 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:06.842000             🧑  作者: Mango

代码示例2
>>> import datetime
>>> a = datetime.datetime.now()
>>> b = datetime.datetime.now()
>>> delta = b - a
>>> print delta
0:00:05.077263
>>> int(delta.total_seconds() * 1000) # milliseconds
5077