Sha256: d125e463772a3fe406d402f2d9462520d57db06fa96658caf5b52fddca6471fb
Contents?: true
Size: 475 Bytes
Versions: 11
Compression:
Stored size: 475 Bytes
Contents
#include <Gosu/Timing.hpp> #include <windows.h> #include <cstdlib> void Gosu::sleep(unsigned milliseconds) { ::Sleep(milliseconds); } namespace { void resetTGT() { ::timeEndPeriod(1); } } unsigned long Gosu::milliseconds() { static bool init = false; if (!init) { if (::timeBeginPeriod(1) != TIMERR_NOERROR) std::atexit(resetTGT); init = true; } return ::timeGetTime(); }
Version data entries
11 entries across 11 versions & 1 rubygems