Sha256: 040c8288bc440ea9894b94c2878423d62a72b359dff093142ca23067e7636af1
Contents?: true
Size: 366 Bytes
Versions: 7
Compression:
Stored size: 366 Bytes
Contents
#include <Gosu/Platform.hpp> #if defined(GOSU_IS_WIN) #include <Gosu/Timing.hpp> #include <windows.h> void Gosu::sleep(unsigned milliseconds) { Sleep(milliseconds); } unsigned long Gosu::milliseconds() { static const unsigned long start = [] { timeBeginPeriod(1); return timeGetTime(); }(); return timeGetTime() - start; } #endif
Version data entries
7 entries across 7 versions & 1 rubygems