Sha256: 0b0ac14d622b59782a3f497c2c7f4c4d227936ce39fb9f0f32718dd64314b38b
Contents?: true
Size: 379 Bytes
Versions: 22
Compression:
Stored size: 379 Bytes
Contents
#include <Gosu/Platform.hpp> #if defined(GOSU_IS_WIN) #include <Gosu/Timing.hpp> #include <cstdlib> #include <windows.h> void Gosu::sleep(unsigned milliseconds) { Sleep(milliseconds); } unsigned long Gosu::milliseconds() { static unsigned long start = [] { timeBeginPeriod(1); return timeGetTime(); }(); return timeGetTime() - start; } #endif
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
gosu-0.14.0 | src/TimingWin.cpp |
gosu-0.14.0.pre2 | src/TimingWin.cpp |