Changed to using clock_t for timing

This commit is contained in:
2023-02-16 21:01:22 +00:00
parent f854979f4c
commit 57b545e517
3 changed files with 25 additions and 14 deletions

View File

@@ -7,15 +7,14 @@
#include "toy_literal_array.h"
#include "toy_literal_dictionary.h"
//TODO: remove this, and replace with time.h
#include <sys/time.h>
#include <time.h>
//the base engine object, which represents the state of the game
typedef struct Box_private_engine {
//engine stuff
Box_EngineNode* rootNode;
struct timeval simTime;
struct timeval realTime;
clock_t simTime;
clock_t realTime;
bool running;
//Toy stuff