mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
Minor refactor
This commit is contained in:
parent
08701bca3c
commit
64295e2170
3 changed files with 30 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue