Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions application/stopwatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <SDL2/SDL.h>
#endif
#include <poglib/basic.h>
#ifdef _WIN64
#include <timeapi.h>
#endif


/*=============================================================================
Expand Down Expand Up @@ -60,6 +63,9 @@ void stopwatch_delay(const f32 ms)

stopwatch_t stopwatch(void)
{
#ifdef _WIN64
timeBeginPeriod(1);
#endif
stopwatch_t output = {0};
output.now = stopwatch_get_tick();
output.raw_dt = 0.01f;
Expand Down