Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/FastDeploy
/ get_current_timestamp_ns
Function
get_current_timestamp_ns
fastdeploy/usage/usage_lib.py:74–75 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
72
73
74
def
get_current_timestamp_ns() -> int:
75
return
int(datetime.datetime.now(datetime.timezone.utc).timestamp() * 1e9)
76
77
78
def
cuda_is_initialized() -> bool:
Callers
3
test_get_current_timestamp_ns
Method · 0.90
_report_usage_once
Method · 0.85
_report_continuous_usage
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_get_current_timestamp_ns
Method · 0.72