sandbox
Loading...
Searching...
No Matches
timer.hpp
1
#ifndef LIBSBX_UTILITY_TIMER_HPP_
2
#define LIBSBX_UTILITY_TIMER_HPP_
3
4
#include <chrono>
5
#include <cmath>
6
7
#include <libsbx/units/time.hpp>
8
9
namespace
sbx::utility {
10
11
class
timer
{
12
13
public
:
14
15
timer
();
16
17
~timer
() =
default
;
18
19
auto
elapsed()
const
noexcept
->
units::second
;
20
21
private
:
22
23
std::chrono::time_point<std::chrono::high_resolution_clock> _start{};
24
25
};
// class timer
26
27
}
// namespace sbx::utility
28
29
#endif
// LIBSBX_UTILITY_TIMER_HPP_
sbx::units::quantity
Definition:
quantity.hpp:65
sbx::utility::timer
Definition:
timer.hpp:11
libsbx-utility
libsbx
utility
timer.hpp
Generated by
1.9.5