Minor refactor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user