MCPcopy 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
11template <typename R, typename P>
12inline double seconds(duration<R, P> x) {
13 return duration_cast<nanoseconds>(x).count() / 1e9;
14}
15
16inline auto time() {
17 return high_resolution_clock::now();

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected