HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
statistics.hpp
1// Copyright Take Vos 2019-2020.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "subsystem.hpp"
8#include <atomic>
9
10namespace tt {
11
12void statistics_deinit() noexcept;
13
14bool statistics_init() noexcept;
15
16inline std::atomic<bool> statistics_running = false;
17
18inline bool statistics_start()
19{
20 return start_subsystem(statistics_running, false, statistics_init, statistics_deinit);
21}
22
23} // namespace tt
STL namespace.