python 中 time start = time.time() end = time.time() latency = end - start 的单位
时间: 2024-04-24 22:24:44 浏览: 174
Python库 | do-latency-0.1.tar.gz
单位是秒。在Python中,time.time()函数返回的是从1970年1月1日午夜UTC到当前时间的秒数。因此,计算latency时得到的结果是以秒为单位的时间差。
#### 引用[.reference_title]
- *1* *2* *3* [翻译[RFC6238] TOTP: Time-Based One-Time Password Algorithm](https://blog.csdn.net/anhe1364/article/details/102154530)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文