大概260w次
還是直接上代碼吧。。。
import random, json, threading, time, urllib, requests
def GetForExecNumPerSecond():
###################========執行時間獲取 start====###########
# #獲取當前的時間戳
# now_time_s =time.time()
# print("now s : ")
# print(now_time_s)
#
# #獲取毫秒級別的時間戳
#
# now_milli_time = int(time.time() * 1000)
# print("now milli : ")
# print(now_milli_time)
###################========執行時間獲取 end====###########
start_time = int(time.time() * 1000)
print("start time :")
print(start_time)
for i in range(0,100000000000000):
end_time = int(time.time() * 1000)
if end_time -start_time > 1000:
print("start time :")
print(end_time)
print("執行次數 : ")
print(i)
break
GetForExecNumPerSecond()
執行結果是: