Minor refactor

This commit is contained in:
MihailRis
2023-12-05 23:01:29 +03:00
parent 08701bca3c
commit 64295e2170
3 changed files with 30 additions and 14 deletions
+10
View File
@@ -1,7 +1,17 @@
#ifndef UTIL_TIMEUTIL_H_
#define UTIL_TIMEUTIL_H_
#include "../typedefs.h"
#include <chrono>
namespace timeutil {
class Timer {
std::chrono::high_resolution_clock::time_point start;
public:
Timer();
int64_t stop();
};
float time_value(float hour, float minute, float second);
void from_value(float value, int& hour, int& minute, int& second);
}