Initial Commit

This commit is contained in:
2024-07-12 19:48:34 +02:00
parent 9fd5826e0e
commit ac9e58cce2
89 changed files with 50981 additions and 23 deletions

26
include/pd/Timer.hpp Normal file
View File

@@ -0,0 +1,26 @@
#pragma once
#include <3ds.h>
#include <pd/smart_ctor.hpp>
namespace Palladium {
class Timer {
public:
Timer(bool autostart = true);
~Timer() {}
PD_SMART_CTOR(Timer)
void Reset();
void Tick();
void Pause();
void Resume();
float Get();
float GetLive();
bool Running();
private:
uint64_t last = 0;
uint64_t current = 0;
bool is_running = false;
};
} // namespace Palladium