19 lines
437 B
C++
19 lines
437 B
C++
#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);
|
|
}
|
|
|
|
#endif // UTIL_TIMEUTIL_H_
|