MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / DurationFromNanoseconds

Function DurationFromNanoseconds

tensorflow/lite/experimental/ruy/time.h:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48template <typename RepresentationType>
49Duration DurationFromNanoseconds(RepresentationType representation) {
50 return std::chrono::duration_cast<Duration>(
51 std::chrono::duration<RepresentationType, std::nano>(representation));
52}
53
54inline float ToFloatSeconds(const Duration& duration) {
55 return std::chrono::duration_cast<std::chrono::duration<float>>(duration)

Callers 1

CoarseNowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected