Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ seconds
Function
seconds
examples/cpp/timer.h:12–14 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
11
template <typename R, typename P>
12
inline double seconds(duration<R, P> x) {
13
return duration_cast<nanoseconds>(x).count() / 1e9;
14
}
15
16
inline auto time() {
17
return high_resolution_clock::now();
Callers
2
main
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected