VIPRA Documentation
Loading...
Searching...
No Matches
time.hpp
1#pragma once
2
3#include <string>
4#include <utility>
5
6#include "vipra/types/time.hpp"
7
8namespace VIPRA::Behaviors {
9class Duration {
10 public:
11 explicit Duration(VIPRA::f_pnt dur) : _range(dur, dur) {}
12 explicit Duration(std::pair<VIPRA::f_pnt, VIPRA::f_pnt> rnd) : _range(std::move(rnd)) {}
13 Duration(VIPRA::f_pnt start, VIPRA::f_pnt end) : _range(start, end) {}
14
15 [[nodiscard]] static auto duration_str() -> std::string { return ""; }
16
17 private:
18 VIPRA::time_range_s _range;
19};
20} // namespace VIPRA::Behaviors