data drivin all code sucess

This commit is contained in:
Andrew Haynes Macbook
2026-01-16 15:03:16 -05:00
parent 7bbf50b581
commit 06d3f27b1e
13 changed files with 358 additions and 115 deletions
+7 -3
View File
@@ -4,10 +4,11 @@
#include <ctime>
#include <string>
#include <vector>
#include "data.hpp"
class Timer {
public:
Timer(std::string name, float max_time) : name(name), max_time(max_time) {};
Timer(TimerData data) : name(data.name), max_time(data.max_time) {};
bool below_or_zero();
float get_time();
std::string get_name();
@@ -21,8 +22,11 @@ private:
};
struct Scheduler {
Scheduler();
std::vector<Timer> timers;
void update(bool& running, std::vector<Timer>& times);
int pull(std::vector<Timer>& times, std::string name);
void update(bool& running);
int pull(std::string name);
};
#endif