Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
93
def
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.py
File · 0.90
train
Function · 0.90
test
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected