Sequoia
Loading...
Searching...
No Matches
Helpers.hpp
Go to the documentation of this file.
1
2// Copyright Oliver J. Rosten 2021. //
3// Distributed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. //
4// (See accompanying file LICENSE.md or copy at //
5// https://www.gnu.org/licenses/gpl-3.0.en.html) //
7
8#pragma once
9
14#include <chrono>
15
16namespace sequoia
17{
18 class [[nodiscard]] timer_resolution
19 {
20 unsigned int m_Resolution{};
21
22 [[nodiscard]]
23 static unsigned int resolution(std::chrono::milliseconds t) noexcept;
24 public:
25 timer_resolution() = default;
26
27 explicit timer_resolution(std::chrono::milliseconds t);
28
30 };
31}
Definition: Helpers.hpp:19