- [WIP] Fase 3 en process
This commit is contained in:
16
source/backends/backend.cpp
Normal file
16
source/backends/backend.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "backend.h"
|
||||
#include <chrono>
|
||||
|
||||
namespace backend
|
||||
{
|
||||
uint64_t get_time_ms() {
|
||||
using namespace std::chrono;
|
||||
return duration_cast<milliseconds>(
|
||||
steady_clock::now().time_since_epoch()
|
||||
).count();
|
||||
}
|
||||
|
||||
void exit() {
|
||||
current_state = quitting;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user