// Copyright © 2023 Apple Inc. #pragma once #include namespace timer { using namespace std::chrono; template inline double seconds(duration x) { return duration_cast(x).count() / 1e9; } inline auto time() { return high_resolution_clock::now(); } } // namespace timer