| 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 | |
| 49 | using preciseStopwatch = Stopwatch<>; |
nothing calls this directly
no outgoing calls
no test coverage detected