MCPcopy Create free account
hub / github.com/649453932/Bert-Chinese-Text-Classification-Pytorch / get_time_dif

Function get_time_dif

utils.py:93–97  ·  view source on GitHub ↗

获取已使用时间

(start_time)

Source from the content-addressed store, hash-verified

91
92
93def get_time_dif(start_time):
94 """获取已使用时间"""
95 end_time = time.time()
96 time_dif = end_time - start_time
97 return timedelta(seconds=int(round(time_dif)))

Callers 3

run.pyFile · 0.90
trainFunction · 0.90
testFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected