Added some time functions.

This commit is contained in:
2021-04-27 07:26:19 -07:00
parent e323cf2721
commit 96db74a546
10 changed files with 43 additions and 16 deletions

View File

@ -7,7 +7,9 @@
#pragma once
#define GAMETIME_STEP 0.016
#define GAMETIME_FIXED_STEP 0.016
#define GAMETIME_SMALLEST_STEP 0.001
typedef struct {
/**

View File

@ -14,8 +14,12 @@
#include <stdint.h>
#include <stdbool.h>
#include <malloc.h>
#include <string.h>
#if defined(_WIN32) || defined(_WIN64)
// Windows Fixes
# define strtok_r strtok_s
# define sleep(n) _sleep(n)
#else
#endif