Sha256: da5b255ba8ea3d4681d509015a8fe4e5de4ab948a4f911e9a82fe4c180d1ee6d
Contents?: true
Size: 422 Bytes
Versions: 7
Compression:
Stored size: 422 Bytes
Contents
#include <Gosu/Platform.hpp> #if defined(GOSU_IS_X) #include <Gosu/Timing.hpp> #include <sys/time.h> #include <unistd.h> void Gosu::sleep(unsigned milliseconds) { usleep(milliseconds * 1000); } unsigned long Gosu::milliseconds() { timeval tp; gettimeofday(&tp, nullptr); unsigned long ms = tp.tv_usec / 1000UL + tp.tv_sec * 1000UL; static unsigned long start = ms; return ms - start; } #endif
Version data entries
7 entries across 7 versions & 1 rubygems