MCPcopy Create free account
hub / github.com/cyrusbehr/tensorrt-cpp-api / elapsedTime

Method elapsedTime

src/engine.h:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40 // Returns elapsed time
41 template <typename Rep = typename Clock::duration::rep, typename Units = typename Clock::duration> Rep elapsedTime() const {
42 std::atomic_thread_fence(std::memory_order_relaxed);
43 auto counted_time = std::chrono::duration_cast<Units>(Clock::now() - start_point).count();
44 std::atomic_thread_fence(std::memory_order_relaxed);
45 return static_cast<Rep>(counted_time);
46 }
47};
48
49using preciseStopwatch = Stopwatch<>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected